/* gabs.feedback --- candy-colored playground */

:root {
    --grape: #9B59F5;
    --bubblegum: #FF6B9D;
    --lemon: #FFD93D;
    --mint: #6BCB77;
    --tangerine: #FF8C42;
    --cream: #FFF8F0;
    --lavender: #F0E6FF;
    --mintwash: #E8F8F0;
    --plum: #2D1B4E;
    --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html, body {
    background: var(--cream);
    color: var(--plum);
    font-family: 'Quicksand', system-ui, sans-serif;
    font-weight: 500;
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100%;
}

body {
    position: relative;
    background: var(--cream);
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Ambient hue drift overlay */
.hue-drift {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 15% 12%, rgba(255,217,61,0.12), transparent 60%),
        radial-gradient(circle at 85% 35%, rgba(155,89,245,0.10), transparent 55%),
        radial-gradient(circle at 50% 70%, rgba(107,203,119,0.08), transparent 60%);
    transition: background-color 600ms ease-out;
    will-change: background;
}

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px 80px;
    overflow: hidden;
    z-index: 1;
}

.hero-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: clamp(3.5rem, 10vw, 9rem);
    letter-spacing: -0.02em;
    line-height: 0.95;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.02em;
    margin-bottom: 60px;
    pointer-events: auto;
    user-select: none;
}

.hero-letter {
    display: inline-block;
    transform-origin: center;
    transition: transform 220ms var(--bounce), color 200ms ease;
    cursor: default;
    will-change: transform;
    text-shadow: 4px 4px 0 rgba(45,27,78,0.12);
}

.hero-letter.dot {
    color: var(--plum);
    font-weight: 800;
}

.hero-bubble {
    position: relative;
    background: var(--lemon);
    color: var(--plum);
    font-family: 'Baloo 2', cursive;
    font-weight: 600;
    font-size: 1.4rem;
    padding: 22px 44px;
    border: 4px solid var(--plum);
    border-radius: 60px 70px 50px 70px / 60px 50px 70px 50px;
    box-shadow: 6px 6px 0 var(--plum);
    transition: transform 350ms var(--bounce), box-shadow 250ms ease;
    letter-spacing: 0.04em;
    filter: url(#wobble);
    animation: pulse 5s ease-in-out infinite;
}

.hero-bubble:hover {
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 8px 10px 0 var(--plum);
}

.hero-bubble .bubble-tail {
    position: absolute;
    width: 40px;
    height: 40px;
    bottom: -22px;
    left: 60px;
}

.scroll-cue {
    position: absolute;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: 'Baloo 2', cursive;
    font-size: 0.95rem;
    color: var(--plum);
    opacity: 0.8;
    animation: bob 2.6s ease-in-out infinite;
}

.scroll-arrow {
    width: 22px;
    height: 36px;
}

/* Floating faces */
.floating-faces {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.face {
    position: absolute;
    width: 64px;
    height: 64px;
    filter: drop-shadow(4px 4px 0 rgba(45,27,78,0.18));
}

.face-a { top: 14%; left: 8%;  animation: drift 7s ease-in-out infinite; }
.face-b { top: 22%; right: 11%; animation: drift 9s ease-in-out infinite reverse; }
.face-c { bottom: 18%; left: 14%; animation: drift 8s ease-in-out infinite; animation-delay: -3s; }

/* Confetti */
.confetti-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.confetti-dot {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--plum);
    box-shadow: 3px 3px 0 rgba(45,27,78,0.18);
    pointer-events: auto;
    cursor: pointer;
    transition: transform 220ms var(--bounce);
    animation: spin var(--dot-dur, 60s) linear infinite;
    will-change: transform;
}

.confetti-dot:hover {
    transform: scale(1.3);
}

.confetti-dot.bursting {
    animation: burst 600ms forwards;
}

/* ============ DIVIDERS ============ */
.divider {
    position: relative;
    width: 100%;
    height: 120px;
    line-height: 0;
    margin-top: -60px;
    z-index: 1;
}

.divider svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ============ CHAPTER SECTIONS ============ */
.chapter {
    position: relative;
    min-height: 100vh;
    padding: 80px 24px;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}

.chapter-speak {
    background: var(--lavender);
}
.chapter-listen {
    background: var(--cream);
}
.chapter-grow {
    background: var(--mintwash);
}

.blob {
    position: relative;
    max-width: 540px;
    padding: 60px 56px;
    background: var(--cream);
    border: 4px solid var(--plum);
    box-shadow: 10px 12px 0 var(--plum);
    z-index: 2;
    opacity: 0;
    transform: translateY(40px) scale(0.92);
    transition: opacity 600ms var(--bounce), transform 600ms var(--bounce);
}

.blob.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.blob-left {
    margin-left: 6%;
    border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
}

.blob-right {
    margin-left: auto;
    margin-right: 6%;
    border-radius: 45% 55% 40% 60% / 55% 45% 60% 50%;
}

.chapter-speak .blob { background: #FFF6E5; }
.chapter-listen .blob { background: #FFF0F5; }
.chapter-grow .blob { background: #F2FFF6; }

.chapter-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.chapter-speak .chapter-title { color: var(--grape); }
.chapter-listen .chapter-title { color: var(--bubblegum); }
.chapter-grow .chapter-title { color: var(--mint); }

.chapter-body {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 28px;
    color: var(--plum);
}

.prompt-bubble {
    display: inline-block;
    font-family: 'Baloo 2', cursive;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 14px 28px;
    background: var(--lemon);
    color: var(--plum);
    border: 3px solid var(--plum);
    border-radius: 50px 60px 50px 18px / 50px 50px 60px 18px;
    box-shadow: 4px 4px 0 var(--plum);
    letter-spacing: 0.04em;
    transition: transform 300ms var(--bounce), box-shadow 200ms ease;
    cursor: pointer;
    filter: url(#wobble);
    animation: pulse 5s ease-in-out infinite;
}

.prompt-bubble.alt { background: var(--mint); }

.prompt-bubble:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 6px 8px 0 var(--plum);
}

/* Squiggles */
.squiggle {
    position: absolute;
    width: 60%;
    max-width: 600px;
    height: 130px;
    pointer-events: none;
    z-index: 1;
}

.squiggle-1 { top: 18%; right: 4%; }
.squiggle-2 { bottom: 14%; left: 4%; }
.squiggle-3 { top: 22%; right: 6%; }

.squiggle-path {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    transition: stroke-dashoffset 1500ms ease-out;
    animation: shimmer 8s ease-in-out infinite;
}

.squiggle.drawn .squiggle-path {
    stroke-dashoffset: 0;
}

/* Floating decorative blobs */
.floating-blob {
    position: absolute;
    width: 120px;
    height: 120px;
    pointer-events: none;
    filter: drop-shadow(4px 4px 0 rgba(45,27,78,0.2));
}

.f-blob-1 { top: 12%; right: 10%; animation: drift 9s ease-in-out infinite; }
.f-blob-2 { top: 14%; left: 8%; animation: drift 10s ease-in-out infinite reverse; }
.f-blob-3 { bottom: 12%; left: 10%; animation: drift 8s ease-in-out infinite; }

/* ============ TESTIMONIALS ============ */
.testimonials {
    position: relative;
    padding: 100px 0 120px;
    background: var(--lavender);
    overflow: hidden;
    z-index: 1;
}

.stream-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(2.4rem, 5vw, 4rem);
    text-align: center;
    color: var(--grape);
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 500ms var(--bounce), transform 500ms var(--bounce);
}

.stream-title.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.bubble-river {
    position: relative;
    height: 360px;
    width: 100%;
}

.t-bubble {
    position: absolute;
    padding: 22px 28px;
    border: 3px solid var(--plum);
    box-shadow: 5px 6px 0 var(--plum);
    max-width: 280px;
    transition: transform 350ms var(--bounce), box-shadow 250ms ease;
    will-change: transform;
}

.t-bubble:hover {
    transform: scale(1.05);
    box-shadow: 7px 9px 0 var(--plum);
}

.t-bubble p {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 6px;
}

.t-bubble .t-author {
    font-family: 'Baloo 2', cursive;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

.t-grape    { background: #E5D4FF; color: var(--plum); border-radius: 60px 30px 60px 30px / 30px 60px 30px 60px; top: 10%;  left: 4%; }
.t-pink     { background: #FFE0EC; color: var(--plum); border-radius: 50% 50% 50% 12% / 50% 50% 50% 30%; top: 30%; left: 22%; }
.t-mint     { background: #D8F5DE; color: var(--plum); border-radius: 70px; top: 55%; left: 8%; }
.t-yellow   { background: #FFF1B5; color: var(--plum); border-radius: 30px 60px 30px 60px / 60px 30px 60px 30px; top: 15%; left: 50%; }
.t-tangerine{ background: #FFD9BD; color: var(--plum); border-radius: 80px 30px 80px 30px / 30px 80px 30px 80px; top: 50%; left: 56%; }
.t-lavender { background: #E0CCF7; color: var(--plum); border-radius: 50px 80px 30px 50px / 60px 40px 80px 30px; top: 28%; left: 75%; }

/* ============ SANDBOX ============ */
.sandbox {
    position: relative;
    padding: 80px 24px 120px;
    background: var(--cream);
    text-align: center;
    overflow: hidden;
    z-index: 1;
}

.sandbox-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--tangerine);
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 500ms var(--bounce), transform 500ms var(--bounce);
}

.sandbox-sub {
    font-family: 'Baloo 2', cursive;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 500ms var(--bounce) 80ms, transform 500ms var(--bounce) 80ms;
}

.sandbox-title.visible, .sandbox-sub.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.sandbox-area {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.thought-pad {
    flex: 1 1 320px;
    max-width: 380px;
    background: #FFF1B5;
    border: 4px solid var(--plum);
    border-radius: 50px 80px 30px 60px / 60px 40px 80px 30px;
    padding: 30px;
    box-shadow: 8px 10px 0 var(--plum);
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 500ms var(--bounce), transform 500ms var(--bounce);
}

.thought-pad.visible {
    opacity: 1;
    transform: translateY(0);
}

.pad-label {
    display: block;
    font-family: 'Baloo 2', cursive;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 14px;
    letter-spacing: 0.04em;
    color: var(--plum);
}

#scribble {
    width: 100%;
    min-height: 130px;
    background: #FFFCEC;
    border: 3px dashed var(--plum);
    border-radius: 24px;
    padding: 16px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    color: var(--plum);
    resize: none;
    outline: none;
}

#scribble::placeholder {
    color: rgba(45,27,78,0.4);
}

.color-picker {
    flex: 1 1 280px;
    max-width: 320px;
    background: #FFE0EC;
    border: 4px solid var(--plum);
    border-radius: 60px 30px 50px 80px / 30px 60px 80px 50px;
    padding: 30px;
    box-shadow: 8px 10px 0 var(--plum);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 500ms var(--bounce) 100ms, transform 500ms var(--bounce) 100ms;
}

.color-picker.visible {
    opacity: 1;
    transform: translateY(0);
}

.picker-label {
    width: 100%;
    text-align: center;
    font-family: 'Baloo 2', cursive;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.04em;
    color: var(--plum);
    margin-bottom: 4px;
}

.swatch {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--plum);
    box-shadow: 3px 3px 0 var(--plum);
    cursor: pointer;
    transition: transform 240ms var(--bounce);
}

.swatch:hover { transform: scale(1.15) rotate(8deg); }
.swatch.active { transform: scale(1.2); box-shadow: 5px 5px 0 var(--plum); }

.sticker-tray {
    flex: 1 1 320px;
    max-width: 380px;
    background: #D8F5DE;
    border: 4px solid var(--plum);
    border-radius: 80px 40px 60px 50px / 50px 70px 40px 60px;
    padding: 30px;
    box-shadow: 8px 10px 0 var(--plum);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 500ms var(--bounce) 200ms, transform 500ms var(--bounce) 200ms;
    position: relative;
    min-height: 220px;
}

.sticker-tray.visible {
    opacity: 1;
    transform: translateY(0);
}

.tray-label {
    display: block;
    font-family: 'Baloo 2', cursive;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 16px;
    letter-spacing: 0.04em;
    color: var(--plum);
    text-align: center;
}

.stickers {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.sticker {
    width: 70px;
    height: 70px;
    cursor: grab;
    user-select: none;
    transition: transform 200ms var(--bounce);
    will-change: transform;
}

.sticker:hover { transform: scale(1.1) rotate(-4deg); }
.sticker.dragging { cursor: grabbing; transform: scale(1.15); z-index: 10; }
.sticker svg { width: 100%; height: 100%; filter: drop-shadow(3px 3px 0 rgba(45,27,78,0.25)); pointer-events: none; }

.signoff {
    margin-top: 80px;
    font-family: 'Baloo 2', cursive;
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: var(--plum);
    opacity: 0.85;
}

.dot-pulse {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bubblegum);
    border: 2px solid var(--plum);
    margin-left: 8px;
    vertical-align: middle;
    animation: pulse 1.6s ease-in-out infinite;
}

/* ============ KEYFRAMES ============ */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

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

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0) rotate(-3deg); }
    50% { transform: translate(8px, -10px) rotate(3deg); }
}

@keyframes shimmer {
    0%, 100% { stroke-dashoffset: 0; opacity: 1; }
    50% { stroke-dashoffset: 8; opacity: 0.85; }
}

@keyframes burst {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(2.4); opacity: 0.6; }
    100% { transform: scale(0.2); opacity: 0; }
}

@keyframes letter-bob {
    0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
    50% { transform: translateY(-6px) rotate(calc(var(--rot, 0deg) + 2deg)); }
}

.hero-letter {
    animation: letter-bob 3.4s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(36px) scale(0.94);
    transition: opacity 600ms var(--bounce), transform 600ms var(--bounce);
}

[data-reveal].visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (max-width: 720px) {
    .hero-title { font-size: clamp(2.6rem, 12vw, 5rem); }
    .blob-left, .blob-right {
        margin: 0 auto;
        padding: 40px 32px;
    }
    .squiggle { display: none; }
    .floating-blob { width: 80px; height: 80px; }
    .bubble-river { height: auto; display: flex; flex-direction: column; gap: 20px; padding: 0 24px; }
    .t-bubble { position: relative; top: auto !important; left: auto !important; max-width: 100%; }
    .face { width: 44px; height: 44px; }
}
