/* gabs.feedback */
/* Palette: #ffffff, #0d9488, #ccfbf1, #111827, #e5e7eb, #14b8a6 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #ffffff;
    color: #111827;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
}

/* ========================================
   SECTION 1: Hero / Collect (0-100vh)
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    position: relative;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.speech-icon {
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(-8px);
    animation: fadeDown 0.6s ease 0.3s forwards;
}

.speech-icon-small {
    margin-bottom: 1rem;
}

@keyframes fadeDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(2.8rem, 8vw, 4.5rem);
    color: #111827;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeIn 0.7s ease 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.teal-bar {
    width: 60px;
    height: 3px;
    background: #0d9488;
    margin: 1.2rem 0;
    opacity: 0;
    animation: growBar 0.5s ease 0.8s forwards;
}

@keyframes growBar {
    0% {
        opacity: 0;
        width: 0;
    }
    100% {
        opacity: 1;
        width: 60px;
    }
}

.tagline {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 400;
    opacity: 0;
    animation: fadeIn 0.6s ease 1s forwards;
}

.counter {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.8rem;
    color: #0d9488;
    margin-top: 1.5rem;
    opacity: 0;
    animation: fadeIn 0.6s ease 1.2s forwards;
}

.counter-label {
    font-weight: 400;
}

.counter-num {
    font-weight: 700;
    font-size: 0.9rem;
}

/* ========================================
   SECTION 2: Feedback Cards (100-260vh)
   ======================================== */

.feedback {
    min-height: 160vh;
    max-width: 640px;
    margin: 0 auto;
    padding: 6rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: #111827;
    border-bottom: 2px solid #0d9488;
    display: inline-block;
    padding-bottom: 0.4rem;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.card {
    background: #ffffff;
    border-left: 3px solid #0d9488;
    padding: 18px 22px;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.09);
    transform: translateX(3px);
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.card-topic {
    font-weight: 600;
    font-size: 0.88rem;
    color: #111827;
}

.rating {
    display: flex;
    gap: 5px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    transition: transform 0.2s ease;
}

.dot.filled {
    background: #14b8a6;
}

.dot.empty {
    background: #e5e7eb;
}

.card:hover .dot.filled {
    transform: scale(1.15);
}

.card-summary {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.65;
}

/* ========================================
   SECTION 3: Insights (260-340vh)
   ======================================== */

.insights {
    min-height: 80vh;
    max-width: 640px;
    margin: 0 auto;
    padding: 4rem 1.5rem 4rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
    margin-top: 1rem;
}

.stat-box {
    background: #ccfbf1;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.stat-value {
    font-family: 'Source Code Pro', monospace;
    font-weight: 700;
    font-size: 1.6rem;
    color: #0d9488;
}

.stat-label {
    font-size: 0.72rem;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.bars-container,
.category-scores {
    margin-bottom: 2.5rem;
}

.bars-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #111827;
    margin-bottom: 1rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #e5e7eb;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.bar-label {
    font-size: 0.78rem;
    color: #111827;
    width: 85px;
    flex-shrink: 0;
    font-weight: 400;
}

.bar-track {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #0d9488;
    border-radius: 4px;
    width: 0;
    transition: width 0.8s ease;
}

.bar-val {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.72rem;
    color: #0d9488;
    width: 38px;
    text-align: right;
    font-weight: 700;
    flex-shrink: 0;
}

/* ========================================
   SECTION 4: Close (340vh+)
   ======================================== */

.close {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 4rem 1.5rem;
}

.close-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.close-text {
    font-weight: 600;
    font-size: 1.2rem;
    color: #111827;
    margin-bottom: 0.25rem;
}

.close .teal-bar {
    margin: 1rem 0;
}

.close-brand {
    font-size: 0.75rem;
    color: #6b7280;
    letter-spacing: 0.02em;
}

/* ========================================
   Fade-in Animation
   ======================================== */

.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 480px) {
    .feedback,
    .insights {
        padding-left: 1rem;
        padding-right: 1rem;
    }

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

    .stat-box {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 1.25rem;
    }

    .card-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
}
