section {
    gap: 1rem;
}

h1 {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: clamp(1.8rem, 4vw + 0.4rem, 3.2rem);
    text-align: center;
}

.tool-hero {
    margin-bottom: 2rem;
}

.tool-input-section {
    display: block;
    margin: 1rem 0;
}

.tool-options {
    margin: 0;
}


.tool-option-group h3 {
    text-align: center;
    font-size: 1rem;
    opacity: 0.65;
    margin-bottom: 0.75rem;
}

.disclaimer {
    background: #f8f9fa;
    border-left: 4px solid #dee2e6;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.disclaimer p {
    margin: 0;
    color: var(--slate);
}

.apology-templates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.template-card {
    background: var(--white-80);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    cursor: pointer;
}

.template-card:hover {
    transform: translateY(-2px);
    background: var(--clean);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}


.template-card h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.125rem;
    color: var(--abyss);
}

.template-card p {
    margin: 0;
    color: var(--slate);
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
}

.copied-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--mint);
    color: var(--clean);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 0.3s ease;
}

.copied-indicator img {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}


.tool-examples {
    padding: 1rem 0;
    text-align: center;
}

.tool-examples h2 {
    text-align: center;
    margin: 0 0 1rem 0;
}

.tool-examples p {
    margin: 0;
}


.formula-card {
    background: var(--white-80);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 1.5rem auto;
    max-width: 600px;
}

.tip h2 {
    text-align: center;
}

.tip h3 {
    text-align: center;
}

.tool-instructions h2 {
    text-align: center;
}

.formula-card strong {
    color: var(--brand-pink-500);
}


@media (max-width: 768px) {
    h1 {
        text-align: center;
        font-size: clamp(1.75rem, 4.5vw + 0.5rem, 2.25rem);
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .tools-button {
        margin: 0;
    }
    

    .apology-templates {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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


    .template-card p {
        padding-bottom: 0;
    }
}
