/**
 * Instagram Carousel Generator - CreatorFlow Free Tool
 * Brand Colors: #000000 (black), #d1fe17 (lime green)
 * NO box-shadows, NO gradients on dark backgrounds
 */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings use Poppins per brand guidelines */
h1, h2, h3, h4, h5, h6,
.tool-hero__title,
.tool-card__title,
.tool-info__title,
.tool-info__subtitle,
.info-step__title,
.editor-title,
.preview-title,
.export-title,
.export-option__title,
.tool-next-step__title,
.next-step-feature__title,
.tool-comparison__title,
.comparison-column__title,
.tool-faq__title,
.faq-question,
.tool-cta__title,
.tool-tab,
.tool-tab__text,
.tool-tab__number {
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Tool Container */
.tool-container {
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   HERO SECTION
   ============================================ */
.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-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f9fafb;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.carousel-icon {
    color: #E1306C;
}

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

.tool-hero__description {
    font-size: 1.125rem;
    color: #374151;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* ============================================
   TOOL SECTION (CAROUSEL BUILDER)
   ============================================ */
.tool-section {
    padding: 2rem 0;
    background: #f9fafb;
}

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

/* Tabs */
.tool-tabs {
    display: flex;
    gap: 1rem;
    margin: 0 auto 2rem;
    border-bottom: 2px solid #e5e7eb;
    max-width: 700px;
    background: #ffffff;
    padding: 0 1rem;
    border-radius: 0.5rem 0.5rem 0 0;
}

.tool-tab {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tool-tab:hover:not(:disabled) {
    color: #000000;
}

.tool-tab--active {
    color: #000000;
    border-bottom-color: #d1fe17;
}

.tool-tab:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tool-tab__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f9fafb;
    color: #6b7280;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
}

.tool-tab--active .tool-tab__number {
    background: #d1fe17;
    color: #000000;
}

/* Tab Content */
.tool-content {
    display: none;
}

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

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

/* ============================================
   CAROUSEL BUILDER
   ============================================ */
.carousel-builder {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

/* Editor Side */
.carousel-editor {
    padding: 2rem;
    border-right: 1px solid #e5e7eb;
}

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

.editor-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
}

.slide-counter {
    background: #f9fafb;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
}

/* Settings */
.editor-settings {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
}

.setting-group {
    flex: 1;
    min-width: 200px;
}

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

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

.template-btn {
    padding: 0.5rem 1rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.template-btn:hover {
    border-color: #d1fe17;
}

.template-btn--active {
    background: #d1fe17;
    border-color: #d1fe17;
    color: #000000;
}

.color-options {
    display: flex;
    gap: 0.5rem;
}

.color-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn--active {
    border-color: #000000;
}

/* Font Options */
.setting-group--full {
    flex-basis: 100%;
}

.font-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.font-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 70px;
}

.font-btn:hover {
    border-color: #d1fe17;
}

.font-btn--active {
    background: #d1fe17;
    border-color: #d1fe17;
}

.font-btn__preview {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    line-height: 1;
}

.font-btn__name {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.font-btn--active .font-btn__name {
    color: #000000;
}

/* Username Input */
.username-setting {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
}

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

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

.username-prefix {
    padding: 0.75rem 0 0.75rem 1rem;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.9375rem;
}

.username-input {
    flex: 1;
    padding: 0.75rem 1rem 0.75rem 0.25rem;
    border: none;
    outline: none;
    font-size: 0.9375rem;
    font-family: inherit;
    color: #000000;
    background: transparent;
}

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

/* Background Color Options */
.bg-color-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bg-color-btn:hover {
    transform: scale(1.1);
}

.bg-color-btn--active {
    border-color: #d1fe17;
}

/* Background Options Container */
.background-options {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Background Image Upload */
.bg-image-upload {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bg-image-input {
    display: none;
}

.bg-image-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bg-image-label:hover {
    border-color: #d1fe17;
    color: #000000;
}

.bg-image-label svg {
    flex-shrink: 0;
}

.bg-image-preview {
    position: relative;
    display: flex;
    align-items: center;
}

.bg-image-preview img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 0.375rem;
    border: 2px solid #d1fe17;
}

.remove-bg-image {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    background: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}

.remove-bg-image:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Text Alignment Options */
.align-options {
    display: flex;
    gap: 0.5rem;
}

.align-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
}

.align-btn:hover {
    border-color: #d1fe17;
    color: #000000;
}

.align-btn--active {
    background: #d1fe17;
    border-color: #d1fe17;
    color: #000000;
}

/* Slides List */
.slides-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.slide-item {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.2s ease;
}

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

.slide-item--active {
    border-color: #d1fe17;
    background: #fefff5;
}

.slide-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.slide-item__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #d1fe17;
    color: #000000;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
}

.slide-item__actions {
    display: flex;
    gap: 0.5rem;
}

.slide-action-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
}

.slide-action-btn:hover {
    background: #e5e7eb;
    color: #000000;
}

.slide-action-btn--delete:hover {
    background: #fee2e2;
    color: #ef4444;
}

.slide-item__inputs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.slide-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: #000000;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

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

.slide-input:focus {
    outline: none;
    border-color: #d1fe17;
    background: #ffffff;
}

.slide-input--title {
    font-weight: 600;
    font-size: 1rem;
}

.slide-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: #000000;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-family: inherit;
    resize: vertical;
    min-height: 70px;
}

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

.slide-textarea:focus {
    outline: none;
    border-color: #d1fe17;
    background: #ffffff;
}

/* Add Slide Button */
.add-slide-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    background: #ffffff;
    border: 2px dashed #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-slide-btn:hover {
    border-color: #d1fe17;
    color: #000000;
    background: #fefff5;
}

.add-slide-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   PREVIEW SIDE
   ============================================ */
.carousel-preview {
    padding: 2rem;
    background: #f9fafb;
}

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

.preview-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #000000;
}

.preview-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.preview-nav-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
}

.preview-nav-btn:hover:not(:disabled) {
    border-color: #d1fe17;
    color: #000000;
}

.preview-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.preview-slide-indicator {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
}

/* Instagram Post Preview */
.phone-preview {
    display: flex;
    justify-content: center;
}

.instagram-post {
    width: 100%;
    max-width: 340px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #dbdbdb;
    overflow: hidden;
}

/* Instagram Header */
.instagram-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #efefef;
}

.instagram-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.instagram-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.instagram-avatar-inner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #000000;
}

.instagram-username {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.instagram-more {
    color: #000000;
    cursor: pointer;
}

/* Slide Content Area */
.preview-slide {
    width: 100%;
    aspect-ratio: 4/5;
    background: #ffffff;
    overflow: hidden;
    position: relative;
}

.slide-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1.5rem;
    /* align-items and text-align controlled by JavaScript */
}

/* Instagram Action Bar */
.instagram-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 6px;
}

.instagram-actions-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.instagram-action-btn {
    color: #000000;
    cursor: pointer;
    transition: opacity 0.2s;
}

.instagram-action-btn:hover {
    opacity: 0.6;
}

/* Instagram Carousel Dots */
.instagram-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 8px 14px 12px;
}

.instagram-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a8a8a8;
    transition: all 0.2s;
}

.instagram-dot--active {
    background: #0095f6;
}

/* Instagram Likes */
.instagram-likes {
    padding: 0 14px 8px;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

/* Template Styles */
.preview-slide[data-template='modern'] {
    background: #000000;
}

.preview-slide[data-template='modern'] .slide-title {
    color: #ffffff;
}

.preview-slide[data-template='modern'] .slide-text {
    color: rgba(255, 255, 255, 0.8);
}


.preview-slide[data-template='minimal'] {
    background: #ffffff;
}

.preview-slide[data-template='minimal'] .slide-title {
    color: #000000;
}

.preview-slide[data-template='minimal'] .slide-text {
    color: #374151;
}


.preview-slide[data-template='bold'] {
    background: var(--accent-color, #d1fe17);
}

.preview-slide[data-template='bold'] .slide-title {
    color: #000000;
}

.preview-slide[data-template='bold'] .slide-text {
    color: rgba(0, 0, 0, 0.8);
}


.preview-slide[data-template='gradient'] {
    background: linear-gradient(135deg, var(--accent-color, #d1fe17) 0%, #000000 100%);
}

.preview-slide[data-template='gradient'] .slide-title {
    color: #ffffff;
}

.preview-slide[data-template='gradient'] .slide-text {
    color: rgba(255, 255, 255, 0.9);
}


/* Slide number badge removed - no longer used in preview */

.slide-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.slide-text {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.slide-footer {
    position: absolute;
    bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.6;
}

/* Preview dots replaced by Instagram dots - see .instagram-dots above */

/* Preview Actions */
.preview-actions {
    margin-top: 1.5rem;
}

.preview-actions .btn {
    width: 100%;
    justify-content: center;
}

/* ============================================
   EXPORT SECTION
   ============================================ */
.export-section {
    background: #ffffff;
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    max-width: 1200px;
    margin: 0 auto;
}

.export-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin-bottom: 0.5rem;
}

.export-description {
    font-size: 1rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 2rem;
}

/* Carousel Grid */
.carousel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.75rem;
}

.carousel-grid-item {
    aspect-ratio: 4/5;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
    border: 2px solid #e5e7eb;
}

.carousel-grid-item__number {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: 24px;
    height: 24px;
    background: #000000;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.carousel-grid-item__download {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
}

.carousel-grid-item__download:hover {
    background: #d1fe17;
    color: #000000;
}

/* Export Options */
.export-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.export-option {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
}

.export-option__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
}

.export-option__text {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.export-option .btn {
    width: 100%;
    justify-content: center;
}

#backToEditorBtn {
    display: flex;
    margin: 0 auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}

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

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

.btn--outline {
    background: transparent;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.btn--outline:hover {
    border-color: #d1fe17;
    color: #000000;
}

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

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

.btn--cta-large {
    background: #000000;
    color: #ffffff;
    padding: 1rem 2rem;
    font-size: 1.0625rem;
    font-weight: 700;
}

.btn--cta-large:hover {
    background: #d1fe17;
    color: #000000;
}

/* ============================================
   SEO CONTENT SECTION
   ============================================ */
.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, 'Segoe UI', sans-serif !important;
    font-size: clamp(1.375rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: #000000 !important;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-align: center;
    line-height: 1.2;
}

.tool-info__subtitle {
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: #000000 !important;
    margin: 2rem 0 1rem;
    text-align: left;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

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

.tool-info__content code {
    background: #f9fafb;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9375rem;
    color: #6b46c1;
}

/* Steps */
.tool-info__steps {
    margin: 1.5rem 0 2rem;
    position: relative;
}

.tool-info__steps::before {
    content: '';
    position: absolute;
    left: 36px;
    top: 60px;
    bottom: 60px;
    width: 2px;
    background: linear-gradient(to bottom, #d1fe17 0%, #d1fe17 50%, transparent 50%, transparent 100%);
    background-size: 2px 20px;
    z-index: 0;
}

.info-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    align-items: flex-start;
    position: relative;
    z-index: 1;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.info-step:hover {
    border-color: #d1fe17;
    transform: translateX(8px);
}

.info-step:last-child {
    margin-bottom: 0;
}

.info-step__icon {
    position: relative;
    flex-shrink: 0;
}

.info-step__icon svg {
    position: absolute;
    top: 11px;
    left: 10px;
    color: #000000;
    z-index: 2;
}

.info-step__number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #d1fe17;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.info-step__content {
    flex: 1;
}

.info-step__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.info-step__content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

/* Benefits Grid */
.tool-info__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
}

.benefit-card {
    background: #f9fafb;
    padding: 1.75rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-card:hover {
    border-color: #d1fe17;
    background: #ffffff;
}

.benefit-card__icon {
    width: 56px;
    height: 56px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d1fe17;
    flex-shrink: 0;
}

.benefit-card__icon svg {
    color: #000000;
    stroke-width: 2;
}

.benefit-card__content {
    flex: 1;
}

.benefit-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.benefit-card__text {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Use Cases */
.use-case-scenarios {
    margin: 3rem 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.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.use-case-scenario__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
    line-height: 1.3;
}

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

/* Best Practices */
.best-practices-list {
    margin: 3rem 0;
}

.best-practice-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.best-practice-item:hover {
    border-color: #d1fe17;
    transform: translateX(4px);
}

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

.best-practice-item__content {
    flex: 1;
}

.best-practice-item__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.best-practice-item__content p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #374151;
    margin: 0;
}

.tool-info__closing {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #374151;
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border-left: 4px solid #d1fe17;
}

.tool-info__closing strong {
    color: #000000;
}

/* ============================================
   NEXT STEP SECTION
   ============================================ */
.tool-next-step {
    background: #ffffff;
    padding: 3.5rem 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-flex;
    align-items: center;
    gap: 0.5rem;
    background: #d1fe17;
    color: #000000;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.tool-next-step__title {
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: clamp(1.375rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: #000000 !important;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.tool-next-step__description {
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tool-next-step__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.next-step-feature {
    display: flex;
    gap: 1rem;
    text-align: left;
}

.next-step-feature__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d1fe17;
}

.next-step-feature__icon svg {
    width: 24px;
    height: 24px;
    color: #000000;
}

.next-step-feature__content {
    flex: 1;
}

.next-step-feature__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.next-step-feature__text {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

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

/* ============================================
   COMPARISON SECTION
   ============================================ */
.tool-comparison {
    background: #ffffff;
    padding: 3.5rem 0;
}

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

.tool-comparison__header {
    text-align: center;
    margin-bottom: 3rem;
}

.tool-comparison__badge {
    display: inline-block;
    background: #f9fafb;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.tool-comparison__title {
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: clamp(1.375rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: #000000 !important;
    letter-spacing: -0.02em;
    text-align: center;
    line-height: 1.2;
}

.comparison-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 100%;
    overflow: hidden;
}

.comparison-column {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
}

.comparison-column--automated {
    background: #ffffff;
    border: 2px solid #d1fe17;
}

.comparison-column__header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.comparison-column__header--featured {
    border-bottom-color: #d1fe17;
}

.comparison-column__title {
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000 !important;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.comparison-column__subtitle {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0;
}

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

.comparison-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.5;
}

.comparison-item:last-child {
    margin-bottom: 0;
}

.comparison-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.comparison-icon--check {
    color: #10b981;
}

.comparison-icon--cross {
    color: #ef4444;
}

.comparison-column .btn--cta {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.tool-faq {
    background: #ffffff;
    padding: 3.5rem 0;
}

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

.tool-faq__title {
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: clamp(1.375rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: #000000 !important;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

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

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

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

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

.faq-question {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #000000;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.faq-question:hover {
    color: #000000;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 700;
    color: #6b7280;
    transition: transform 0.2s ease;
}

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

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

.faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
}

.faq-answer p {
    margin: 0 0 1rem 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer a {
    color: #000000;
    text-decoration: underline;
    font-weight: 600;
}

.faq-answer a:hover {
    color: #d1fe17;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {
    .carousel-builder {
        grid-template-columns: 1fr;
    }

    .carousel-editor {
        border-right: none;
    }

    .carousel-preview {
        padding: 1.5rem;
    }

    .comparison-table {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Tablet: 640px and up */
@media (min-width: 640px) {
    .tool-hero__container,
    .tool-section__container,
    .tool-info__container,
    .tool-next-step__container,
    .tool-comparison__container,
    .tool-faq__container {
        padding: 0 2.5rem;
    }
}

@media (max-width: 768px) {
    .tool-hero {
    /* NOTE: NO border-bottom - removed per user request */
        padding: 8rem 0 1rem;
    }

    .tool-hero__container {
        padding: 0 1.25rem;
    }

    .tool-hero__description {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }

    .tool-section {
        padding: 1.25rem 0;
    }

    .tool-section__container {
        padding: 0 1.25rem;
    }

    .carousel-editor {
        padding: 1.25rem;
    }

    .editor-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
        margin-bottom: 1rem;
    }

    .editor-title {
        font-size: 1.25rem;
    }

    .editor-settings {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .setting-group {
        min-width: 100%;
    }

    .setting-label {
        font-size: 0.8125rem;
        margin-bottom: 0.5rem;
    }

    .tool-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 0.5rem;
    }

    .tool-tabs::-webkit-scrollbar {
        display: none;
    }

    .tool-tab {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
        flex-shrink: 0;
    }

    .tool-tab__text {
        display: none;
    }

    .tool-tab--active .tool-tab__text {
        display: inline;
    }

    .phone-frame {
        width: 240px;
    }

    .export-section {
        padding: 1.5rem 1.25rem;
    }

    .export-title {
        font-size: 1.375rem;
    }

    .export-description {
        font-size: 0.875rem;
    }

    .carousel-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .tool-info {
        padding: 2rem 0;
    }

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

    .tool-next-step {
        padding: 2rem 0;
    }

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

    .tool-next-step__description {
        font-size: 0.9375rem;
        margin-bottom: 2rem;
    }

    .tool-comparison {
        padding: 2rem 0;
        overflow: hidden;
    }

    .tool-comparison__container {
        padding: 0 1.25rem;
        max-width: 100%;
        overflow: hidden;
    }

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

    .tool-faq {
        padding: 2rem 0;
    }

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

    .comparison-table {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .comparison-column {
        padding: 1.25rem;
    }

    .comparison-column__title {
        font-size: 1.0625rem;
    }

    .comparison-item {
        font-size: 0.875rem;
    }

    .tool-next-step__features {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .tool-info__subtitle {
        margin: 1.5rem 0 0.875rem;
        font-size: 1.125rem;
    }

    .tool-info__steps::before {
        display: none;
    }

    .info-step {
        gap: 0.875rem;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .info-step:hover {
        transform: none;
    }

    .info-step__icon svg {
        width: 20px;
        height: 20px;
        top: 8px;
        left: 7px;
    }

    .info-step__number {
        width: 36px;
        height: 36px;
        font-size: 1.125rem;
    }

    .info-step__title {
        font-size: 1rem;
    }

    .info-step__content p {
        font-size: 0.875rem;
    }

    .tool-info__benefits-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .benefit-card {
        padding: 1.25rem;
    }

    .benefit-card__icon {
        width: 44px;
        height: 44px;
    }

    .benefit-card__icon svg {
        width: 24px;
        height: 24px;
    }

    .benefit-card__title {
        font-size: 1rem;
    }

    .benefit-card__text {
        font-size: 0.875rem;
    }

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

    .use-case-scenario {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }

    .use-case-scenario__badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.625rem;
    }

    .use-case-scenario__title {
        font-size: 1.0625rem;
        margin-bottom: 0.75rem;
    }

    .use-case-scenario__text {
        font-size: 0.875rem;
    }

    /* Best Practices */
    .best-practices-list {
        margin: 2rem 0;
    }

    .best-practice-item {
        gap: 0.875rem;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .best-practice-item:hover {
        transform: none;
    }

    .best-practice-item__number {
        width: 36px;
        height: 36px;
        font-size: 1.125rem;
    }

    .best-practice-item__title {
        font-size: 1rem;
    }

    .best-practice-item__content p {
        font-size: 0.875rem;
    }

    /* Slides List */
    .slides-list {
        max-height: 400px;
        padding-right: 0.25rem;
    }

    .slide-item {
        padding: 0.875rem;
    }

    .slide-item__header {
        margin-bottom: 0.5rem;
    }

    .slide-input {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }

    .slide-textarea {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
        min-height: 60px;
    }
}

@media (max-width: 430px) {
    .tool-hero {
    /* NOTE: NO border-bottom - removed per user request */
        padding: 7rem 0 0.75rem;
    }

    .tool-hero__container {
        padding: 0 1rem;
    }

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

    .tool-hero__badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
        margin-bottom: 1rem;
    }

    .carousel-editor {
        padding: 1rem;
    }

    .carousel-preview {
        padding: 1rem;
    }

    .preview-title {
        font-size: 1rem;
    }

    .phone-frame {
        width: 200px;
    }

    .slide-title {
        font-size: 1rem;
    }

    .slide-text {
        font-size: 0.75rem;
    }

    .export-section {
        padding: 1.25rem 1rem;
    }

    .export-title {
        font-size: 1.25rem;
    }

    .tool-info {
        padding: 1.5rem 0;
    }

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

    .tool-info__content p {
        font-size: 0.9375rem;
    }

    .tool-next-step {
        padding: 1.5rem 0;
    }

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

    .tool-comparison {
        padding: 1.5rem 0;
    }

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

    .tool-comparison__badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
        margin-bottom: 0.75rem;
    }

    .tool-faq {
        padding: 1.5rem 0;
    }

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

    .faq-question {
        font-size: 0.9375rem;
        padding: 1rem 1.25rem;
    }

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

    .info-step {
        padding: 0.875rem;
        margin-bottom: 0.875rem;
        gap: 0.75rem;
    }

    .info-step__number {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .info-step__title {
        font-size: 0.9375rem;
    }

    .info-step__content p {
        font-size: 0.8125rem;
    }

    .tool-info__closing {
        padding: 0.875rem;
        font-size: 0.875rem;
    }

    .benefit-card {
        padding: 1rem;
        gap: 0.75rem;
    }

    .benefit-card__icon {
        width: 40px;
        height: 40px;
    }

    .benefit-card__icon svg {
        width: 22px;
        height: 22px;
    }

    .benefit-card__title {
        font-size: 0.9375rem;
    }

    .benefit-card__text {
        font-size: 0.8125rem;
    }

    .comparison-column {
        padding: 1rem;
    }

    .comparison-column__title {
        font-size: 1rem;
        margin-bottom: 0.375rem;
    }

    .comparison-column__header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .comparison-item {
        font-size: 0.8125rem;
        margin-bottom: 0.75rem;
    }

    .comparison-icon {
        width: 18px;
        height: 18px;
    }

    /* Use Cases */
    .use-case-scenario {
        padding: 1rem;
        margin-bottom: 0.875rem;
    }

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

    .use-case-scenario__text {
        font-size: 0.8125rem;
    }

    /* Best Practices */
    .best-practice-item {
        padding: 0.875rem;
        margin-bottom: 0.875rem;
        gap: 0.75rem;
    }

    .best-practice-item__number {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .best-practice-item__title {
        font-size: 0.9375rem;
    }

    .best-practice-item__content p {
        font-size: 0.8125rem;
    }

    /* Slides */
    .slides-list {
        max-height: 350px;
    }

    .slide-item {
        padding: 0.75rem;
    }

    .slide-item__number {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .slide-action-btn {
        width: 24px;
        height: 24px;
    }

    .add-slide-btn {
        padding: 0.75rem;
        margin-top: 0.75rem;
        font-size: 0.875rem;
    }

    /* Instagram Post Preview */
    .instagram-post {
        max-width: 100%;
    }

    .instagram-header {
        padding: 10px 12px;
    }

    .instagram-username {
        font-size: 13px;
    }

    .slide-content {
        padding: 1.5rem 1rem;
    }
}

/* Extra small mobile (Budget Android - Brazil, India) */
@media (max-width: 360px) {
    .tool-hero {
    /* NOTE: NO border-bottom - removed per user request */
        padding: 6.5rem 0 0.875rem;
    }

    .tool-hero__container {
        padding: 0 0.875rem;
    }

    .tool-hero__badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.625rem;
    }

    .tool-section__container,
    .tool-info__container,
    .tool-next-step__container,
    .tool-comparison__container,
    .tool-faq__container {
        padding: 0 0.875rem;
    }

    .carousel-editor {
        padding: 0.875rem;
    }

    .carousel-preview {
        padding: 0.875rem;
    }

    .export-section {
        padding: 1rem 0.875rem;
    }

    .comparison-column {
        padding: 0.875rem;
    }

    .comparison-column__title {
        font-size: 0.9375rem;
    }

    .comparison-item {
        font-size: 0.75rem;
        gap: 0.5rem;
    }

    .slide-content {
        padding: 1.25rem 0.875rem;
    }
}
