/* ==========================================================================
   Pipsqueak! Welcome / Landing Page
   Imports design tokens from style.css via shared :root variables
   ========================================================================== */

/* ==========================================================================
   Page Layout
   ========================================================================== */

.welcome-body {
    padding-bottom: 0;
}

.welcome-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    overflow-x: hidden;
    padding-top: 10px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.welcome-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 8px 0 20px;
    width: 100%;
    overflow: hidden;
}

.welcome-hero-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 0 16px 0;
}

.welcome-hero-banner {
    display: block;
    width: 88%;
    max-width: 345px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.welcome-hero-tagline {
    font-family: var(--font-tagline);
    font-size: 20px;
    line-height: 25px;
    color: var(--color-text);
    text-align: center;
    white-space: nowrap;
    margin: 0;
}

/* ==========================================================================
   Carousel
   ========================================================================== */

.welcome-carousel {
    width: 100%;
    position: relative;
    background: white;
    box-shadow: 0 0 8px 1px rgba(61, 50, 41, 0.08);
    padding: 11px 0 14px;
}

.welcome-carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.welcome-carousel-track::-webkit-scrollbar {
    display: none;
}

.welcome-carousel-item {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-carousel-item picture {
    display: flex;
    justify-content: center;
}

.welcome-carousel-item img,
.welcome-carousel-item video {
    display: block;
    height: 340px;
    width: auto;
    max-width: 90%;
    object-fit: contain;
    pointer-events: none;
    -webkit-user-drag: none;
}

/* Carousel dot indicators */
.welcome-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.welcome-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-stone);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background var(--duration-normal) var(--ease-smooth), transform var(--duration-normal) var(--ease-smooth);
}

.welcome-carousel-dot.active {
    background: var(--color-orange);
    transform: scale(1.25);
}

/* ==========================================================================
   CTA Buttons (shared style for hero + how-it-works)
   ========================================================================== */

.welcome-cta-wrap {
    display: flex;
    justify-content: center;
    padding: 0 16px;
}

.welcome-cta-button,
.welcome-howitworks-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: lowercase;
    text-align: center;
    text-decoration: none;
    color: white;
    background: linear-gradient(180deg, var(--color-orange-light) 0%, var(--color-orange) 100%);
    border: 3px solid white;
    border-radius: var(--radius-full);
    padding: 16px 54px;
    box-shadow:
        0 5px 0 0 var(--color-orange-ledge),
        0 7px 12px rgba(61, 50, 41, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition:
        transform var(--duration-normal) var(--ease-bounce),
        box-shadow var(--duration-normal) var(--ease-smooth);
}

.welcome-cta-button:hover,
.welcome-howitworks-cta:hover {
    transform: translateY(-2px);
    box-shadow:
        0 7px 0 0 var(--color-orange-ledge),
        0 10px 18px rgba(61, 50, 41, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.welcome-cta-button:active,
.welcome-howitworks-cta:active {
    transform: translateY(3px);
    box-shadow:
        0 2px 0 0 var(--color-orange-ledge),
        0 3px 6px rgba(61, 50, 41, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Reviews Section
   ========================================================================== */

.welcome-reviews {
    width: 100%;
    background: white;
    box-shadow: 0 0 8px 1px rgba(61, 50, 41, 0.08);
    padding: 14px 0;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.welcome-reviews::-webkit-scrollbar {
    display: none;
}

.welcome-reviews-track {
    display: flex;
    gap: 14px;
    width: max-content;
    will-change: transform;
}

.welcome-review-card {
    background: white;
    border: 1px solid var(--color-blue-border);
    border-radius: 10px;
    padding: 11px 13px 10px;
    width: 200px;
    min-width: 200px;
    height: 146px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.welcome-review-stars {
    display: block;
    width: 78px;
    height: auto;
}

.welcome-review-text {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 12.5px;
    line-height: 16px;
    letter-spacing: 0.3px;
    color: var(--color-text);
    margin: 0;
    flex: 1;
}

.welcome-review-author {
    display: flex;
    align-items: center;
}

.welcome-review-name {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 11.5px;
    line-height: 1;
    letter-spacing: 0.3px;
    color: var(--color-text-secondary);
}

/* Infinite scroll animation */
@keyframes reviewsScroll {
    from { transform: translateX(0); }
    to { transform: translateX(var(--scroll-distance)); }
}

.welcome-reviews-track {
    animation: reviewsScroll var(--scroll-duration, 40s) linear infinite;
}

.welcome-reviews-track.paused {
    animation-play-state: paused;
}

.welcome-reviews-track.dragging {
    animation: none;
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    .welcome-reviews-track {
        animation: none;
    }
    .welcome-reviews {
        overflow-x: auto;
    }
}

/* ==========================================================================
   Social Media Links
   ========================================================================== */

.welcome-social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
}

.welcome-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--duration-fast) var(--ease-smooth);
}

.welcome-social-link:hover {
    opacity: 0.6;
}

.welcome-social-icon {
    width: 33px;
    height: 33px;
    display: block;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */

.welcome-howitworks {
    background: white;
    border: 3px solid var(--color-blue-border);
    border-radius: 18px;
    box-shadow: 0px 1px 8px 1px rgba(61, 50, 41, 0.2);
    padding: 42px 11px 31px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    max-width: 375px;
    width: calc(100% - 16px);
    margin: 0 auto;
    box-sizing: border-box;
}

.welcome-howitworks-title {
    font-family: var(--font-display);
    font-size: 48px;
    line-height: 1;
    text-align: center;
    color: var(--color-text);
    margin: 0;
    font-weight: 400;
}

.welcome-howitworks-steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.welcome-step {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px 5px 7px;
    border: 1px solid var(--color-blue-border);
    border-radius: 17px;
    min-height: 114px;
}

.welcome-step--teal {
    background: var(--color-teal);
    color: white;
}

.welcome-step--orange {
    background: var(--color-orange);
    color: var(--color-text);
}

.welcome-step--blue {
    background: var(--color-blue-border);
    color: white;
}

.welcome-step-img {
    width: 114px;
    height: 114px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.welcome-step-text {
    font-family: var(--font-content);
    font-size: 15px;
    line-height: 19px;
}

.welcome-step-text p {
    margin: 0;
}

.welcome-step-note {
    margin-top: 6px !important;
}

/* ==========================================================================
   Our Commitment Section
   ========================================================================== */

.welcome-commitment {
    display: flex;
    justify-content: center;
    padding: 0 8px;
}

.welcome-commitment-card {
    background: white;
    border: 3px solid var(--color-orange);
    border-radius: 18px;
    box-shadow: 0px 2px 6px 1px rgba(61, 50, 41, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 40px 31px;
    gap: 15px;
    max-width: 375px;
    width: 100%;
    overflow: hidden;
}

.welcome-commitment-logo {
    width: 97px;
    height: 96px;
    object-fit: contain;
}

.welcome-commitment-title {
    font-family: var(--font-display);
    font-size: 40px;
    line-height: 32px;
    text-align: center;
    color: var(--color-text);
    margin: 0;
    font-weight: 400;
}

.welcome-commitment-highlight {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 16px;
    line-height: 27px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-commitment-red);
    margin: 0;
    width: 310px;
    max-width: 100%;
}

.welcome-commitment-divider {
    width: 264px;
    max-width: 100%;
    display: block;
}

.welcome-commitment-description {
    font-family: var(--font-content);
    font-size: 16px;
    line-height: 27px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text);
    margin: 0;
    width: 310px;
    max-width: 100%;
}

.welcome-commitment-description strong {
    font-weight: 700;
}

.welcome-commitment-description em {
    font-style: italic;
}

.welcome-commitment-superdog {
    width: 266px;
    height: 101px;
    overflow: hidden;
    position: relative;
    background: white;
}

.welcome-commitment-superdog-img {
    width: 134px;
    height: 134px;
    object-fit: cover;
    position: absolute;
    left: 50%;
    top: -13px;
    transform: translateX(-50%);
}

.welcome-commitment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-blue-border);
    color: white;
    border: 3px solid white;
    border-radius: 20px;
    padding: 17px 55px;
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 14px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.375px;
    text-decoration: none;
    font-weight: 400;
    box-shadow: 0px 4px 4px 0px rgba(61, 50, 41, 0.25);
    cursor: pointer;
    transition:
        transform var(--duration-normal) var(--ease-bounce),
        box-shadow var(--duration-normal) var(--ease-smooth);
}

.welcome-commitment-btn:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 8px 0px rgba(61, 50, 41, 0.25);
}

.welcome-commitment-btn:active {
    transform: scale(0.98);
    box-shadow: 0px 2px 3px 0px rgba(61, 50, 41, 0.25);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.welcome-footer {
    background: white;
    text-align: center;
    padding: 11px 25px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.welcome-footer p {
    margin: 0;
    color: var(--color-text);
}

.welcome-footer-copyright {
    font-family: var(--font-system);
    font-size: 16px;
    line-height: 1.4;
}

.welcome-footer-rights {
    font-family: var(--font-system);
    font-size: 10px;
    line-height: 1.4;
    margin-top: 2px;
}

.welcome-footer-legal {
    font-family: var(--font-system);
    font-size: 8px;
    line-height: 1.6;
    margin-top: 12px;
}

.welcome-footer-legal a {
    color: var(--color-text);
    text-decoration: none;
}

.welcome-footer-legal a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Responsive — Tablet (640px)
   ========================================================================== */

@media (min-width: 640px) {
    .welcome-hero {
        gap: 28px;
        padding: 16px 0 40px;
    }

    .welcome-hero-banner {
        max-width: 420px;
    }

    .welcome-hero-tagline {
        font-size: 24px;
        line-height: 30px;
    }

    .welcome-carousel-item img,
    .welcome-carousel-item video {
        height: 360px;
    }

    .welcome-cta-button,
    .welcome-howitworks-cta {
        font-size: 33px;
        padding: 18px 62px;
    }

    .welcome-reviews-track {
        gap: 12px;
    }

    .welcome-review-card {
        width: 220px;
        min-width: 220px;
        height: 148px;
    }

    .welcome-howitworks {
        max-width: 440px;
        padding: 42px 40px 31px;
    }

    .welcome-step-img {
        width: 124px;
        height: 124px;
    }

    .welcome-step-text {
        font-size: 16px;
        line-height: 20px;
    }

    .welcome-commitment-card {
        max-width: 440px;
    }
}

/* ==========================================================================
   Responsive — iPad Portrait (768px)
   ========================================================================== */

@media (min-width: 768px) {
    .welcome-hero-banner {
        max-width: 480px;
    }

    .welcome-hero-tagline {
        font-size: 26px;
        line-height: 32px;
    }

    .welcome-carousel-item img,
    .welcome-carousel-item video {
        height: 400px;
    }

    .welcome-howitworks {
        max-width: 500px;
    }

    .welcome-howitworks-title {
        font-size: 52px;
    }

    .welcome-commitment-card {
        max-width: 500px;
    }

    .welcome-commitment-title {
        font-size: 44px;
    }
}

/* ==========================================================================
   Responsive — Desktop (900px)
   ========================================================================== */

@media (min-width: 900px) {
    .welcome-page {
        gap: 24px;
    }

    .welcome-hero {
        gap: 32px;
        padding: 24px 0 48px;
    }

    .welcome-hero-banner {
        max-width: 540px;
    }

    .welcome-hero-tagline {
        font-size: 28px;
        line-height: 35px;
    }

    .welcome-carousel-item img,
    .welcome-carousel-item video {
        height: 480px;
    }

    .welcome-cta-button,
    .welcome-howitworks-cta {
        font-size: 36px;
        padding: 20px 70px;
    }

    .welcome-reviews {
        padding: 14px 0;
    }

    .welcome-reviews-track {
        gap: 16px;
    }

    .welcome-review-card {
        width: 260px;
        min-width: 260px;
        height: 150px;
        padding: 13px 15px 11px;
    }

    .welcome-review-text {
        font-size: 14.5px;
        line-height: 17px;
    }

    .welcome-review-name {
        font-size: 12.5px;
    }

    .welcome-howitworks {
        max-width: 660px;
        padding: 48px 44px 36px;
    }

    .welcome-howitworks-title {
        font-size: 56px;
    }

    .welcome-step {
        gap: 14px;
        padding: 8px 16px 8px 8px;
    }

    .welcome-step-img {
        width: 140px;
        height: 140px;
    }

    .welcome-step-text {
        font-size: 17px;
        line-height: 22px;
    }

    .welcome-commitment-card {
        max-width: 660px;
        padding: 28px 56px 40px;
    }

    .welcome-commitment-title {
        font-size: 48px;
    }

    .welcome-commitment-description {
        font-size: 17px;
        line-height: 28px;
    }

    .welcome-social-links {
        gap: 44px;
    }

    .welcome-social-icon {
        width: 38px;
        height: 38px;
    }
}

/* ==========================================================================
   Responsive — Large Desktop (1200px)
   ========================================================================== */

@media (min-width: 1200px) {
    .welcome-page {
        gap: 32px;
    }

    .welcome-hero {
        gap: 36px;
        padding: 32px 0 56px;
    }

    .welcome-hero-banner {
        max-width: 620px;
    }

    .welcome-hero-tagline {
        font-size: 32px;
        line-height: 40px;
    }

    .welcome-carousel-item img,
    .welcome-carousel-item video {
        height: 560px;
    }

    .welcome-cta-button,
    .welcome-howitworks-cta {
        font-size: 38px;
        padding: 22px 80px;
    }

    .welcome-reviews {
        padding: 18px 0;
    }

    .welcome-reviews-track {
        gap: 20px;
    }

    .welcome-review-card {
        width: 300px;
        min-width: 300px;
        height: 160px;
        padding: 15px 17px 13px;
    }

    .welcome-review-text {
        font-size: 15.5px;
        line-height: 19px;
    }

    .welcome-review-name {
        font-size: 13.5px;
    }

    .welcome-review-stars {
        width: 88px;
    }

    .welcome-howitworks {
        max-width: 800px;
        padding: 48px 56px 40px;
        gap: 30px;
    }

    .welcome-howitworks-title {
        font-size: 60px;
    }

    .welcome-step {
        gap: 16px;
        padding: 10px 18px 10px 10px;
        min-height: 130px;
    }

    .welcome-step-img {
        width: 150px;
        height: 150px;
    }

    .welcome-step-text {
        font-size: 19px;
        line-height: 25px;
    }

    .welcome-commitment-card {
        max-width: 800px;
        padding: 32px 64px 44px;
        gap: 18px;
    }

    .welcome-commitment-title {
        font-size: 52px;
    }

    .welcome-commitment-highlight {
        font-size: 18px;
    }

    .welcome-commitment-description {
        font-size: 18px;
        line-height: 29px;
        width: 400px;
    }

    .welcome-commitment-logo {
        width: 110px;
        height: 109px;
    }

    .welcome-social-links {
        gap: 48px;
    }

    .welcome-social-icon {
        width: 44px;
        height: 44px;
    }

    .welcome-footer {
        padding: 20px 24px 16px;
    }

    .welcome-footer-copyright {
        font-size: 18px;
    }

    .welcome-footer-rights {
        font-size: 11px;
    }

    .welcome-footer-legal {
        font-size: 9px;
    }
}

/* ==========================================================================
   Shrink-Away Exit Transition
   ========================================================================== */

html {
    background-color: #f6f5fd;
}

.welcome-body.transitioning {
    overflow: hidden;
}

.welcome-page.shrinking {
    transition: transform 0.85s cubic-bezier(0.55, 0.0, 0.9, 0.4),
                opacity 0.5s cubic-bezier(0.55, 0.0, 0.9, 0.4) 0.3s;
    transform: translateY(110vh) rotate(3deg);
    opacity: 0;
}

/* Button ripple on click */
.welcome-cta-button,
.welcome-howitworks-cta {
    position: relative;
    overflow: visible;
}

.welcome-cta-button.cta-ripple::after,
.welcome-howitworks-cta.cta-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--color-orange);
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    animation: ctaRipple 0.5s ease-out forwards;
    pointer-events: none;
}

@keyframes ctaRipple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(18);
        opacity: 0;
    }
}
