:root {
    --primary: #F12850;
    --black: #000000;
    --bg: #F4F4F0;
    --font-logo: 'Satoshi', sans-serif;
    --font-main: 'Satoshi', sans-serif;
    --font-accent: 'Caveat', cursive;
}

/* Base styles and layout handled by shared/design-system.css */

/* - SPLASH SCREEN - */
#splash-screen {
    position: fixed;
    inset: 0;
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: -1px -1px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20000;
    transition: opacity 0.6s ease;
}

.splash-logo {
    font-family: var(--font-logo);
    font-size: 38px;
    font-weight: 600;
    color: #000 !important;
    letter-spacing: -0.03em;
    opacity: 0;
    transform: scale(0.96);
}

.splash-logo.animate {
    animation: logoFadeIn 1.2s forwards ease-out;
}

@keyframes logoFadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.splash-logo .lens {
    color: var(--primary);
}

.splash-tagline {
    font-size: 16px;
    color: #000000;
    margin-top: 4px;
    opacity: 0;
}

.splash-tagline.animate {
    animation: fadeIn 1.2s forwards ease-out 0.4s;
}

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

@media (min-width: 768px) and (max-width: 1024px) {
    .splash-logo {
        font-size: 52px;
    }

    .splash-tagline {
        font-size: 20px;
    }
}

@media (min-width: 1025px) {
    .splash-logo {
        font-size: 58px;
    }

    .splash-tagline {
        font-size: 24px;
    }
}

/* - RESPONSIVE LANDING CONTAINER - */
#landing-screen {
    flex: 1;
    width: 100%;
    min-height: 100vh;
    position: relative;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 90px max(48px, env(safe-area-inset-right, 48px)) 90px max(48px, env(safe-area-inset-left, 48px));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
    /* FIX: overflow-x only — overflow:hidden masks scroll-indicator on Chrome iOS */
    overflow-x: clip !important;
    overflow-y: visible !important;
}

@media (max-width: 767px) {
    #landing-screen {
        min-height: 100dvh;
        padding: calc(56px + var(--safe-top)) var(--safe-x) calc(40px + var(--safe-bottom)) var(--safe-x) !important;
        display: flex;
        flex-direction: column;
    }

    #landing-screen .main-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        height: 100%;
    }

    .header-group {
        margin-bottom: 0 !important;
    }

    .machine-stack {
        transform: scale(1);
        transform-origin: center center;
        margin-bottom: 0px !important;
    }
}

#landing-screen.visible {
    opacity: 1;
    pointer-events: auto;
}

/* - LAYER ENFORCEMENT - */
.main-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    pointer-events: none;
}

/* - DECORATIVE POLAROIDS - */
.polaroid {
    position: absolute;
    opacity: 0.9;
    z-index: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
    animation: float-polaroid 6s ease-in-out infinite;
    border: 1px solid transparent;
    border-radius: 2px;
    box-shadow: 0 0 1px 1px rgba(255, 255, 255, 0.01);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform, translate;
}

.polaroid img {
    width: 100%;
    height: auto;
    display: block;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Responsive 2-Big 2-Small Proportions */
.p1,
.p4 {
    width: clamp(70px, 8vw, 140px);
}

/* Big variant */
.p2,
.p3 {
    width: clamp(55px, 6vw, 95px);
}

.polaroid:hover {
    z-index: 9;
    opacity: 1;
}

@keyframes float-polaroid {

    0%,
    100% {
        translate: 0 0px;
    }

    50% {
        translate: 0 -8px;
    }
}

.p1 {
    top: 95px;
    left: 20px;
    transform: rotate(-8deg) translateZ(0);
    animation-delay: 0s;
}

.p1:hover {
    transform: scale(0.85) rotate(-8deg) translateZ(0) !important;
}

.p2 {
    top: 100px;
    right: 20px;
    transform: rotate(6deg) translateZ(0);
    animation-delay: 1.2s;
}

.p2:hover {
    transform: scale(0.85) rotate(6deg) translateZ(0) !important;
}

.p3 {
    bottom: 100px;
    left: 30px;
    transform: rotate(-6deg) translateZ(0);
    animation-delay: 2.5s;
}

.p3:hover {
    transform: scale(0.85) rotate(-6deg) translateZ(0) !important;
}

.p4 {
    bottom: 70px;
    right: 20px;
    transform: rotate(8deg) translateZ(0);
    animation-delay: 0.8s;
}

/* Disable polaroid hover effects for p4 */
.p4:hover {
    z-index: 0 !important;
    opacity: 1 !important;
    transform: rotate(8deg) translateZ(0) !important;
}

@media (max-width: 767px) {
    .hero-mobile {
        padding-top: calc(64px + var(--safe-top)) !important;
        padding-bottom: max(8px, var(--safe-bottom)) !important;
        padding-left: var(--safe-x) !important;
        padding-right: var(--safe-x) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-height: 100dvh !important;
        box-sizing: border-box;
        /* FIX: Use overflow-x clip only — overflow:hidden clips scroll-indicator on Chrome iOS & old Android */
        overflow-x: clip !important;
        overflow-y: visible !important;
    }

    .hero-mobile .main-content {
        width: 100%;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        gap: 0 !important;
        /* Managed by explicit margins */
        overflow: visible;
    }

    .header-group {
        margin-top: 36px !important;
        margin-bottom: 0px !important;
    }

    .live-chip {
        margin-top: 0 !important;
        margin-bottom: 12px !important;
    }

    .hero-title {
        margin-bottom: 24px !important;
        font-size: clamp(28px, 8vw, 36px) !important;
        line-height: 0.98 !important;
    }

    .hero-subtitle {
        margin-bottom: 0 !important;
        font-size: clamp(14px, 3.5vw, 16px) !important;
        line-height: 1.35 !important;
    }

    .hero-preview,
    .strip-preview {
        margin-bottom: 0px !important;
        width: clamp(115px, 35vw, 150px) !important;
        height: auto !important;
        aspect-ratio: 200/320 !important;
        transform: scale(1) !important;
    }

    .mask-viewport {
        width: 82% !important;
        height: 94% !important;
        top: 5% !important;
        left: 50% !important;
        transform: translateX(-50%) translateZ(0) !important;
    }

    .slot-asset {
        width: 100% !important;
        height: auto !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }

    .hero-cta {
        margin-bottom: 24px !important;
    }

    /* Maintain polaroid positions */
    .p1 {
        z-index: 0;
        top: calc(72px + var(--safe-top)) !important;
        left: -14px;
        width: 82px !important;
        transform: rotate(-15deg);
    }

    .p2 {
        z-index: 0;
        top: calc(84px + var(--safe-top)) !important;
        right: -15px;
        width: 65px !important;
        transform: rotate(12deg);
    }

    .p3 {
        z-index: 0;
        position: absolute !important;
        bottom: 14% !important;
        left: -10px;
        width: 70px !important;
        transform: rotate(-10deg);
    }

    .p4 {
        z-index: 0;
        position: absolute !important;
        bottom: 8% !important;
        right: -35px;
        width: 90px !important;
        transform: rotate(20deg);
    }

    .btn-main {
    -webkit-appearance: none;
    appearance: none;
    -webkit-box-shadow: none;
    box-shadow: none;
        height: 52px !important;
        width: 220px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
    }

    /* Scroll Indicator — mobile: always visible, never clipped */
    #landing-screen .scroll-indicator-container {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        justify-content: center !important;
        width: 100% !important;
        display: flex !important;
        bottom: auto !important;
        /* FIX: force above any overflow clip stacking context */
        position: relative !important;
        z-index: 9999 !important;
        /* Ensure it's visible on Chrome iOS & old Android */
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
        will-change: auto !important;
    }

    #landing-screen .scroll-indicator {
        width: 44px !important;
        height: 44px !important;
        margin-bottom: env(safe-area-inset-bottom, 4px) !important;
        background-color: #ffffff !important;
    }

    #landing-screen .scroll-indicator svg {
        width: 18px !important;
        height: 18px !important;
    }
}


@media (max-width: 767px) {
    .top-bar {
        display: none !important;
    }
}

/* Desktop bounds */
@media (min-width: 900px) {

    .p1,
    .p4 {
        width: 140px;
    }

    .p2,
    .p3 {
        width: 95px;
    }
}

/* --- TOP BAR --- */
.top-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 48px;
    z-index: 1000;
    position: absolute;
    top: 0;
    left: 0;
}

/* Logo styles moved to shared/header.css */
@media (min-width: 768px) {

    .header-group {
        max-width: 900px !important;
    }

    .hero-title {
        font-size: 52px !important;
        white-space: nowrap;
    }

    .hero-sub {
        font-size: 24px !important;
        white-space: nowrap;
    }

    .btn-main {
        font-size: 19px !important;
        width: 260px !important;
        height: 64px !important;
    }

    .hero-title .accent,
    .stats-title .accent {
        font-size: 1.32em !important;
        margin-right: 0.12em !important;
    }

    .mobile-br {
        display: none;
    }
}


/* - NEW FEATURE CHIP - */
.new-feature-chip {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border-radius: 999px;
    padding: 4px 16px 4px 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
    margin-bottom: 24px;
    border: 1px solid #d4d4d4;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 90vw;
    cursor: default;
    pointer-events: auto;
}

.new-feature-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
}

.chip-badge {
    background-color: var(--primary);
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1.2;
    flex-shrink: 0;
}

.chip-text {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 767px) {
    .new-feature-chip {
        margin-bottom: 12px;
        padding: 3px 12px 3px 3px;
        gap: 8px;
    }

    .chip-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .chip-text {
        font-size: 12px;
    }
}

/* - TYPOGRAPHY HEADER GROUP - */
.header-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
    /* Restored original desktop spacing */
    z-index: 10;
    pointer-events: none;
}

.hero-title {
    font-size: 52px;
    font-weight: 600;
    line-height: 0.98;
    text-align: center;
    margin-bottom: 24px;
    /* Restored original desktop spacing */
    color: var(--black);
    pointer-events: auto;
    max-width: none;
}

.hero-title .accent {
    font-family: var(--font-accent);
    color: var(--primary);
    font-size: 1.22em !important;
    font-weight: 700;
    margin-left: 0;
    margin-right: 0.12em;
    display: inline-block;
    line-height: inherit;
    transform: translateY(3px) rotate(-2deg);
}

.stats-title .accent {
    font-family: var(--font-accent);
    color: var(--primary);
    font-size: 1.32em !important;
    font-weight: 700;
    margin-left: 0;
    margin-right: 0.12em;
    display: inline-block;
    line-height: inherit;
    transform: translateY(3px) rotate(-2deg);
}

.hero-sub {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.45;
    color: #000000;
    text-align: center;
    pointer-events: auto;
    max-width: none;
}



/* - PERFECT MACHINE STACK - */
.machine-stack {
    position: relative;
    width: 200px;
    height: 320px;
    flex-shrink: 0;
    margin-bottom: 0px;
    /* Reduced to pull CTA tightly up */
    z-index: 10;
    pointer-events: auto;
}

.slot-asset {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    image-rendering: -webkit-optimize-contrast;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.mask-viewport {
    width: 160px;
    height: 305px;
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    overflow: hidden;
    z-index: 5;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    border-radius: 1px;
}

.photo-strip {
    width: 100%;
    display: block;
    opacity: 0;
    transform: translate3d(0, -110%, 0);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    transition: transform 2.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
    image-rendering: -webkit-optimize-contrast;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

#landing-screen.visible .photo-strip.active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* - CTA BUTTON (GUMROAD STYLE) - */
.btn-wrap {
    position: relative;
    flex-shrink: 0;
    z-index: 100;
    display: inline-block;
    pointer-events: auto;
}

.btn-wrap::before,
.btn-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    border: 1px solid #000;
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translate(0, 0);
    /* Hidden by default */
}

.btn-wrap::before {
    background-color: #FFC701;
    z-index: -1;
}

.btn-wrap::after {
    background-color: #F12850;
    z-index: -2;
}

.btn-main {
    height: 60px;
    width: 240px;
    /* Substantial bold width */
    padding: 0 40px;
    background-color: #000;
    color: #fff;
    border: 1px solid #000;
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.2s ease;
}

.btn-main.loading {
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    cursor: wait;
    transform: translate(0px, 0px) !important;
}

/* Hide all interactive shadows when in loading state for a clean look */
.btn-wrap:has(.loading)::before,
.btn-wrap:has(.loading)::after {
    display: none !important;
}

/* Fallback for browsers that don't support :has */
.btn-wrap.is-loading::before,
.btn-wrap.is-loading::after {
    display: none !important;
}

/* Desktop: Unfold on hover */
@media (hover: hover) {
    .btn-wrap:hover .btn-main {
        transform: translate(-2px, -2px);
    }

    .btn-wrap:hover::before {
        transform: translate(4px, 4px);
    }

    .btn-wrap:hover::after {
        transform: translate(8px, 8px);
    }
}

/* Common Indicator Styles */




/* Mobile: Unfold on touch */
@media (hover: none) {
    .btn-wrap:active .btn-main {
        transform: translate(-2px, -2px);
    }

    .btn-wrap:active::before {
        transform: translate(4px, 4px);
    }

    .btn-wrap:active::after {
        transform: translate(8px, 8px);
    }
}

/* - FIXED FOOTER WATERMARK - */
.watermark {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 11px;
    color: #000000;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 20;
}

@keyframes pulse-fade {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.btn-main.loading {
    animation: pulse-fade 1s infinite ease-in-out;
    pointer-events: none;
}

.hidden {
    display: none !important;
}

/* - DESKTOP & MOBILE ANIMATION OVERLAYS MOVED TO LOADER.JS - */

/* ─── Live Stats Section (Premium & Large) ──────────────────────────────────────────────── */
.stats-section-container {
    width: 100%;
    padding: 40px 24px 72px;
    /* Reduced top padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

.stats-header {
    text-align: center;
    margin-bottom: 48px;
}

.stats-title {
    font-family: var(--font-main);
    font-size: 52px;
    font-weight: 600;
    line-height: 0.98;
    color: var(--black);
    margin-bottom: 24px;
}

.stats-subtitle {
    font-family: var(--font-main);
    font-size: 24px;
    font-weight: 500;
    color: #000000;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-title {
        font-size: 52px !important;
    }

    .stats-subtitle {
        font-size: 24px !important;
    }
}

.stats-row {
    display: flex;
    gap: 24px;
    width: 100%;
    max-width: 1000px;
    justify-content: center;
}

.stat-pill {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px 24px;
    background: #ffffff;
    border: 1px solid var(--black);
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.stat-pill:hover {
    transform: translate(-4px, -4px) scale(1.02);
    box-shadow: 4px 4px 0px var(--black);
}

.stat-pill:hover .stat-pill-value {
    transform: scale(1.1);
    color: var(--primary);
}

.stat-pill-value {
    font-family: var(--font-logo);
    font-size: 46px;
    font-weight: 800;
    color: var(--black);
    line-height: 1;
    letter-spacing: -0.03em;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.stat-pill-label {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.stat-pill-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.stat-pill-live::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #22C55E;
    border-radius: 50%;
    border: 1px solid var(--black);
    animation: lbPulse 2s ease-in-out infinite;
}

@keyframes lbPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.stat-value-flash {
    color: var(--primary) !important;
    transform: scale(1.15);
}

@media (max-width: 767px) {
    .stats-row {
        max-width: 100%;
        padding: 0 24px;
    }
}

@media (max-width: 767px) {
    .stats-section-container {
        padding: 32px 16px 48px;
        /* Reduced top padding */
    }

    .stats-header {
        margin-bottom: 32px;
        /* Consistent rhythm to cards */
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }





    .stats-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 20px;
        padding: 0 4px;
        width: 100%;
        box-sizing: border-box;
    }

    .stat-pill {
        padding: 20px 10px;
        min-width: unset;
        gap: 6px;
    }

    .stat-pill:hover {
        transform: translate(-2px, -2px);
        box-shadow: 2px 2px 0px var(--black);
    }

    .stat-pill-value {
        font-size: 28px;
    }

    .stat-pill-label {
        font-size: 10px;
        letter-spacing: 0.04em;
    }
}

/* ─── How It Works Section ──────────────────────────────────────────────── */
.how-section-container {
    width: 100%;
    padding: 72px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

.how-row {
    display: flex;
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    justify-content: center;
}

.how-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    padding: 32px 24px;
    background: #ffffff;
    border: 1px solid var(--black);
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.how-card:hover {
    transform: translate(-4px, -4px) scale(1.02);
    box-shadow: 4px 4px 0px var(--black);
}

.how-card:hover .how-icon {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 2px 2px 0px var(--black);
}

.how-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    border: 1px solid var(--black);
    flex-shrink: 0;
    color: #000;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.how-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5px;
}

.how-card-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.how-card-title {
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    line-height: 1.2;
}

.how-card-desc {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    line-height: 1.4;
}

/* - TABLET & MOBILE RESPONSIVENESS - */
@media (max-width: 1100px) {
    .how-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 grid for tablets */
        gap: 24px;
        padding: 0 32px;
    }
}

@media (max-width: 767px) {
    .how-section-container {
        padding: 56px 16px 48px;
    }

    .how-row {
        grid-template-columns: 1fr;
        /* Back to single column on mobile */
        gap: 12px;
        margin-top: 20px;
        padding: 0 4px;
        width: 100%;
        box-sizing: border-box;
    }

    .how-card {
        padding: 16px 14px;
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
    }

    .how-icon {
        font-size: 20px;
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 10px;
    }

    .how-card-title {
        font-size: 15px;
    }

    .how-card-desc {
        font-size: 13px;
        line-height: 1.4;
    }

    .how-card:hover {
        transform: translate(-2px, -2px);
        box-shadow: 2px 2px 0px var(--black);
    }
}

/* - SCROLL ANIMATIONS - */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* ─── Booth Types Section ─────────────────────────────────────────────── */
.booth-types-section {
    width: 100%;
    padding: 72px 24px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

.booth-types-row {
    display: flex;
    flex-direction: row;
    /* Side by side */
    gap: 32px;
    width: 100%;
    max-width: 1400px;
    /* Expanded for larger images */
    justify-content: center;
    margin-top: 48px;
}

/* The two booth cards */
.booth-card-wrap {
    position: relative;
    flex: 1;
    z-index: 1;
}

.booth-card-wrap::before,
.booth-card-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid var(--black);
    z-index: -1;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}

.booth-card-wrap::before {
    background-color: #FFC701;
    /* Yellow layer */
    transform: translate(0, 0);
}

.booth-card-wrap::after {
    background-color: var(--primary);
    /* Pink layer */
    transform: translate(0, 0);
    z-index: -2;
}

.booth-card-wrap:hover::before {
    transform: translate(4px, 4px);
}

.booth-card-wrap:hover::after {
    transform: translate(8px, 8px);
}

.booth-card {
    height: auto;
    width: 100%;
    aspect-ratio: 3704 / 1626;
    /* Exactly double your image width to account for 50/50 split */
    display: flex;
    flex-direction: row;
    /* Horizontal Rectangle on Desktop */
    align-items: stretch;
    background: #ffffff;
    border: 1px solid var(--black);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 2;
}

/* Standardize layout for both cards in side-by-side mode */
.booth-card-wrap:nth-child(even) .booth-card {
    flex-direction: row;
}

.booth-card:hover {
    transform: translate(-3px, -3px);
}

/* Visual panel - Split Layout */
.booth-card-visual {
    width: 50%;
    /* Equal split */
    height: 100%;
    /* Fill the card height */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    padding: 0;
}

.booth-card-wrap:nth-child(even) .booth-card-visual {
    border-bottom: none;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

/* Image styling inside the visual panel */
.booth-visual-img {
    width: 140px;
    height: auto;
    margin: 40px 0;
    /* Padding for floating icons */
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.12));
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 2;
}

/* Full-bleed cover image variant */
.booth-visual-img--cover {
    width: 100% !important;
    height: 100.5% !important;
    /* Tiny overlap to eliminate rounding gaps at bottom */
    margin: 0 !important;
    display: block;
    /* Remove descender gap */
    object-fit: cover;
    /* Use cover with locked ratio for pixel-perfect fill */
    object-position: center;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Mobile specific: ensure full bleed contain */
@media (max-width: 767px) {
    .booth-card-visual {
        padding: 0 !important;
    }

    .booth-visual-img--cover {
        object-fit: contain !important;
        /* Show entire image on mobile too */
        border-radius: 0 !important;
        /* Sharp corners as requested */
    }
}

.booth-card:hover .booth-visual-img {
    transform: scale(1.08) rotate(-2deg);
}

/* Hover for cover variant: just scale, no rotate to keep edges clean */
.booth-card:hover .booth-visual-img--cover {
    transform: scale(1.05);
}

/* Shared card: overlapping images */
.booth-visual-img--overlap {
    position: absolute;
    width: 120px;
    right: 25%;
    top: 25%;
    z-index: 1;
    transform: rotate(5deg);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.05s;
}

.booth-card:hover .booth-visual-img--overlap {
    transform: scale(1.08) rotate(12deg) translate(15px, -10px);
}

/* Content area - Right side of rectangle */
.booth-card-body {
    padding: 24px 32px;
    /* Balanced padding to ensure text fits ratio */
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    background: #fff;
    flex: 1;
}

.booth-card-title {
    font-family: var(--font-main);
    font-size: 26px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.booth-card-desc {
    font-family: var(--font-main);
    font-size: 14px;
    /* Restored original size */
    font-weight: 500;
    color: #000000;
    /* Restored solid black */
    line-height: 1.4;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

.booth-card-features {
    list-style: none;
    padding: 0;
    margin: 18px 0 20px;
    /* Restored original margins */
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Restored original gap */
}

.booth-card-features li {
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 500;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.booth-card-features li::before {
    content: '';
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F12850' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* CTA inside card */
.booth-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: auto;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 800;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 20px;
    border: 1px solid var(--black);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.booth-card:hover .booth-card-cta {
    background: var(--black);
    color: #fff;
    gap: 12px;
}

.booth-card-cta svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.booth-card:hover .booth-card-cta svg {
    transform: translateX(3px);
}

/* Tablet & Mobile Booth Types */
@media (max-width: 1100px) {
    .booth-types-row {
        flex-direction: column;
        /* Stack on tablets */
        align-items: center;
        gap: 32px;
        padding: 0 24px;
    }

    .booth-card-wrap {
        width: 100%;
        max-width: 600px;
        /* Centered readable width */
        flex: none;
    }

    .booth-card {
        flex-direction: row !important;
        /* Keep horizontal on tablets */
        min-height: 280px;
    }

    .booth-card-visual {
        width: 45% !important;
        height: auto;
        border-right: 1px solid rgba(0, 0, 0, 0.05);
        border-bottom: none;
        padding: 20px;
    }

    .booth-card-body {
        width: 55% !important;
        padding: 32px 24px;
    }
}

@media (max-width: 767px) {
    .booth-types-section {
        padding: 56px 16px 64px;
    }

    .booth-types-row {
        margin-top: 24px;
        gap: 28px;
        padding: 0 4px;
    }

    .booth-card {
        flex-direction: column !important;
        /* Stack on mobile */
        min-height: auto;
    }

    .booth-card {
        aspect-ratio: auto !important;
        /* Let mobile grow naturally */
        flex-direction: column !important;
        /* Always vertical on mobile */
        height: auto !important;
    }

    .booth-card-visual {
        width: 100% !important;
        aspect-ratio: 1852 / 1626 !important;
        /* Perfect for your design */
        height: auto !important;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 0 !important;
    }

    .booth-card-body {
        width: 100% !important;
        padding: 24px 20px;
    }

    .booth-card-title {
        font-size: 20px;
    }

    .booth-card-desc {
        font-size: 14px;
        line-height: 1.5;
    }

    .booth-card-features {
        margin: 14px 0 20px;
        gap: 10px;
    }
}

/* ─── Visual Showcase Section (Marquee) ───────────────────────────────── */
.showcase-section {
    width: 100%;
    padding: 88px 0 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

/* Marquee track - full viewport width, clips overflow */
.marquee-viewport {
    width: 100%;
    overflow: hidden;
    /* Fade edges with a mask */
    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            #000 8%,
            #000 92%,
            transparent 100%);
    mask-image: linear-gradient(to right,
            transparent 0%,
            #000 8%,
            #000 92%,
            transparent 100%);
    margin-top: 48px;
}

/* The scrolling belt - contains two identical sets for seamless loop */
.marquee-track {
    display: flex;
    gap: 28px;
    width: max-content;
    animation: marquee-scroll 45s linear infinite;
    will-change: transform;
}

/* Pause on hover (desktop only) */
@media (hover: hover) {
    .marquee-track:hover {
        animation-play-state: paused;
    }
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Individual polaroid cards - no filter on wrapper to avoid compositing
           artifacts behind the animation. Shadow lives on the img itself. */
.mq-polaroid {
    flex-shrink: 0;
    width: 168px;
    /* 2x native resolution (84px) - clean, no blur */
    cursor: default;
}

.mq-polaroid img {
    width: 100%;
    height: auto;
    display: block;
    /* Individual shadow per image, not behind the animation */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.16), 0 1px 6px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@media (hover: hover) {
    .mq-polaroid:hover img {
        box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22), 0 2px 10px rgba(0, 0, 0, 0.12);
    }
}

/* Text block ABOVE the marquee - centered */
.showcase-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0 24px;
    text-align: center;
    /* Entrance animation */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-text.vs-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Match exact same type scale as stats-title / stats-subtitle */
.showcase-title {
    font-family: var(--font-main);
    font-size: 52px;
    font-weight: 600;
    line-height: 0.98;
    color: var(--black);
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .showcase-title {
        font-size: 52px !important;
    }

    .showcase-sub {
        font-size: 24px !important;
    }
}

/* 'captured' accent - same style as hero/stats accent spans */
.showcase-title .accent {
    font-family: var(--font-accent);
    color: var(--primary);
    font-size: 72px !important;
    font-weight: 700;
    margin-left: 0;
    margin-right: 0.12em;
    display: inline-block;
    line-height: inherit;
    transform: translateY(3px) rotate(-2deg);
}

.showcase-sub {
    font-family: var(--font-main);
    font-size: 24px;
    font-weight: 500;
    color: #000000;
    line-height: 1.5;
    max-width: 800px;
}

/* Mobile: slightly faster scroll, smaller cards */
@media (max-width: 767px) {
    .showcase-section {
        padding: 56px 16px 48px;
    }





    .marquee-track {
        gap: 14px;
        animation-duration: 28s;
    }

    .mq-polaroid {
        width: 120px;
    }

    .marquee-viewport {
        margin-top: 24px;
        -webkit-mask-image: linear-gradient(to right,
                transparent 0%,
                #000 5%,
                #000 95%,
                transparent 100%);
        mask-image: linear-gradient(to right,
                transparent 0%,
                #000 5%,
                #000 95%,
                transparent 100%);
    }
}

/* ─── Final CTA Section ──────────────────────────────────────────────── */
.final-cta-section {
    width: 100%;
    padding: 140px 24px 160px;
    /* Large vertical breathing booth */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

/* Optional very subtle grid */
.final-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: -1px -1px;
    z-index: -1;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    width: 100%;
}

.cta-buttons {
    display: flex;
    flex-direction: row;
    gap: 24px;
    margin-bottom: 24px;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* - CTA Section Polaroids - */
.cta-polaroid {
    position: absolute;
    opacity: 0.85;
    z-index: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
    animation: float-polaroid 4s ease-in-out infinite;
    border: 1px solid transparent;
    border-radius: 2px;
    box-shadow: 0 0 1px 1px rgba(255, 255, 255, 0.01);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform, translate;
}

.cta-polaroid:hover {
    z-index: 9;
    opacity: 1;
}

/* Left pair - top */
.cp1 {
    width: 110px;
    top: 12%;
    left: 5%;
    transform: rotate(-12deg) translateZ(0);
    animation-delay: 0s;
}

.cp1:hover {
    transform: scale(0.85) rotate(-12deg) translateZ(0) !important;
}

/* Right pair - top */
.cp2 {
    width: 100px;
    top: 8%;
    right: 5%;
    transform: rotate(10deg) translateZ(0);
    animation-delay: 1.2s;
}

.cp2:hover {
    transform: scale(0.85) rotate(10deg) translateZ(0) !important;
}

/* Left pair - bottom (close to cp1) */
.cp3 {
    width: 108px;
    top: 48%;
    left: 3%;
    transform: rotate(-5deg) translateZ(0);
    animation-delay: 2.5s;
}

.cp3:hover {
    transform: scale(0.85) rotate(-5deg) translateZ(0) !important;
}

/* Right pair - bottom (close to cp2) */
.cp4 {
    width: 105px;
    top: 44%;
    right: 4%;
    transform: rotate(8deg) translateZ(0);
    animation-delay: 0.8s;
}


@media (min-width: 1400px) {
    .cp1 {
        left: 9%;
    }

    .cp2 {
        right: 9%;
    }

    .cp3 {
        left: 8%;
    }

    .cp4 {
        right: 8%;
    }
}

@media (max-width: 767px) {
    .final-cta-section {
        padding: 72px 16px 80px;
    }





    .cta-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-buttons .btn-main {
        height: 52px !important;
        width: 220px !important;
        font-size: 16px !important;
    }

    .cp1 {
        width: 60px !important;
        top: 2% !important;
        left: -10px;
        transform: rotate(-12deg);
    }

    .cp2 {
        width: 56px !important;
        top: 0% !important;
        right: -10px;
        transform: rotate(10deg);
    }

    .cp3 {
        width: 58px !important;
        top: 62% !important;
        left: -8px;
        transform: rotate(-5deg);
    }

    .cp4 {
        width: 56px !important;
        top: 60% !important;
        right: -10px;
        transform: rotate(8deg);
    }
}



/* Legacy footer styles pruned to allow public/shared/footer.css to control layout exclusively */

/* ══════════════════════════════════════════════════
           TABLET RESPONSIVE TYPOGRAPHY SYSTEM (768px - 1024px)
           ══════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1024px) {

    h1,
    .hero-title,
    .section-title,
    .about-hero-title,
    .mission-title,
    .about-cta-title,
    .stats-title,
    .showcase-title,
    .faq-title {
        font-family: var(--font-main) !important;
        font-size: 48px !important;
        line-height: 0.98 !important;
        font-weight: 700 !important;
        letter-spacing: -0.04em !important;
        margin-bottom: 24px !important;
        width: 100% !important;
        max-width: 11ch !important;
        padding-left: max(16px, env(safe-area-inset-left), env(safe-area-inset-right)) !important;
        padding-right: max(16px, env(safe-area-inset-left), env(safe-area-inset-right)) !important;
        margin-inline: auto !important;
        text-align: center !important;
        text-wrap: balance !important;
        white-space: normal !important;
    }

    h2,
    .hero-sub,
    .section-sub,
    .about-hero-sub,
    .stats-subtitle,
    .showcase-sub,
    .about-cta-sub {
        font-family: var(--font-main) !important;
        font-size: 20px !important;
        line-height: 1.5 !important;
        font-weight: 500 !important;
        max-width: 32ch !important;
        padding-left: max(16px, env(safe-area-inset-left), env(safe-area-inset-right)) !important;
        padding-right: max(16px, env(safe-area-inset-left), env(safe-area-inset-right)) !important;
        margin-inline: auto !important;
        text-align: center !important;
        text-wrap: pretty !important;
        white-space: normal !important;
        margin-bottom: 44px !important;
    }

    .hero-title .accent,
    .stats-title .accent {
        font-size: 1.08em !important;
        font-weight: 600 !important;
    }

    .stats-title,
    .showcase-title {
        font-size: 44px !important;
    }

    .stat-pill-value {
        font-size: 40px !important;
    }

    .stat-pill-label {
        font-size: 14px !important;
    }

    .booth-card-title {
        font-size: 24px !important;
    }

    .booth-card-desc {
        font-size: 16px !important;
    }

    .faq-q {
        font-size: 21px !important;
        font-weight: 700 !important;
    }

    .faq-a {
        font-size: 16px !important;
    }

    .btn-main {
        font-size: 17px !important;
        height: 60px !important;
    }

    .cp3 {
        top: 56% !important;
    }

    .cp4 {
        top: 52% !important;
    }
}

/* ══════════════════════════════════════════════════
           MOBILE RESPONSIVE TYPOGRAPHY SYSTEM (< 767px)
           ══════════════════════════════════════════════════ */
@media (max-width: 767px) {

    h1,
    .hero-title,
    .section-title,
    .about-hero-title,
    .mission-title,
    .about-cta-title,
    .stats-title,
    .showcase-title,
    .faq-title {
        font-family: var(--font-main) !important;
        font-size: 36px !important;
        line-height: 0.98 !important;
        font-weight: 600 !important;
        letter-spacing: -0.04em !important;
        margin-bottom: 24px !important;
        width: 100% !important;
        max-width: 92vw !important;
        padding-left: max(16px, env(safe-area-inset-left), env(safe-area-inset-right)) !important;
        padding-right: max(16px, env(safe-area-inset-left), env(safe-area-inset-right)) !important;
        margin-inline: auto !important;
        text-align: center !important;
        text-wrap: balance !important;
        white-space: normal !important;
    }

    h2,
    .hero-sub,
    .section-sub,
    .about-hero-sub,
    .stats-subtitle,
    .showcase-sub,
    .about-cta-sub {
        font-family: var(--font-main) !important;
        font-size: 16px !important;
        line-height: 1.5 !important;
        font-weight: 500 !important;
        max-width: 28ch !important;
        padding-left: max(16px, env(safe-area-inset-left), env(safe-area-inset-right)) !important;
        padding-right: max(16px, env(safe-area-inset-left), env(safe-area-inset-right)) !important;
        margin-inline: auto !important;
        text-align: center !important;
        text-wrap: pretty !important;
        white-space: normal !important;
        margin-bottom: 44px !important;
    }

    .hero-title .accent,
    .stats-title .accent {
        font-size: 1.05em !important;
        font-weight: 600 !important;
    }

    .stats-title,
    .showcase-title {
        font-size: 32px !important;
    }

    .stat-pill-value {
        font-size: 28px !important;
    }

    .stat-pill-label {
        font-size: 11px !important;
    }

    .booth-card-title {
        font-size: 20px !important;
    }

    .booth-card-desc {
        font-size: 14px !important;
    }

    .faq-q {
        font-size: 17px !important;
    }

    .faq-a {
        font-size: 14px !important;
    }

    .btn-main {
        font-size: 16px !important;
        height: 54px !important;
    }
}

@media (max-width: 1024px) {

    .stats-header,
    .section-header {
        margin-bottom: 0 !important;
    }

    .machine-stack,
    .stats-row,
    .how-row,
    .booth-types-row,
    .showcase-viewport,
    .cta-content {
        margin-top: 0 !important;
    }

    h3,
    .mission-title,
    .contact-card-title,
    .card-title,
    .value-title,
    .booth-card-title,
    .faq-q {
        line-height: 1.3 !important;
        font-weight: 600 !important;
    }

    p,
    .mission-body,
    .story-body,
    .value-desc,
    .sec p,
    .sec ul li,
    .faq-a,
    .card-desc,
    .booth-card-desc {
        font-size: 14px !important;
        line-height: 1.6 !important;
        font-weight: 500 !important;
        margin-bottom: 14px !important;
    }

    small,
    .eyebrow,
    .about-eyebrow,
    .mission-label,
    .contact-card-label,
    .mission-stat-label,
    .badge {
        font-size: clamp(12px, 2.5vw, 14px) !important;
        line-height: 1.4 !important;
    }

    button,
    .btn-main,
    .about-cta-btn,
    .contact-card-action,
    .join-input-row button,
    .nav-cta,
    .booth-card-btn {
        font-size: clamp(14px, 3vw, 16px) !important;
        font-weight: 600 !important;
    }

    span.accent,
    h1 .accent,
    h2 .accent,
    h3 .accent,
    p .accent,
    .hero-title .accent,
    .about-hero-title .accent,
    .output-title .accent,
    .output-mobile-header .output-title .accent,
    .section-title .accent,
    .about-cta-title .accent,
    .stats-title .accent,
    .showcase-title .accent,
    .faq-title .accent,
    .story-quote .accent {
        font-family: "Caveat", cursive !important;
        font-size: 1.32em !important;
        line-height: 0.8 !important;
        font-weight: 700 !important;
        display: inline-block !important;
        transform: translateY(4px) rotate(-2deg) !important;
        white-space: nowrap !important;
        margin: 0 !important;
        margin-right: 0.1em !important;
        letter-spacing: -0.01em !important;
    }
}

@media (max-width: 480px) {

    span.accent,
    h1 .accent,
    h2 .accent,
    h3 .accent,
    p .accent,
    .hero-title .accent,
    .about-hero-title .accent,
    .output-title .accent,
    .output-mobile-header .output-title .accent,
    .section-title .accent,
    .about-cta-title .accent,
    .stats-title .accent,
    .showcase-title .accent,
    .faq-title .accent,
    .story-quote .accent {
        transform: translateY(4px) rotate(-2deg) !important;
    }
}

/* --- FINAL TABLET UI REFINEMENTS (768px - 1024px) --- */
@media (min-width: 768px) and (max-width: 1024px) {
    #landing-screen {
        padding: 60px 40px 40px 40px !important;
        /* Tightened top/bottom padding */
        min-height: 100vh !important;
        /* Ensure full screen height for hero */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        position: relative !important;
        max-width: 100% !important;
        overflow-x: clip !important;
        overflow-y: visible !important;
    }

    .hero-title,
    .showcase-title,
    .about-cta-title {
        font-size: clamp(56px, 8vw, 82px) !important;
        line-height: 0.98 !important;
        letter-spacing: -0.045em !important;
        max-width: 22ch !important;
        /* Unified premium wide wrap for Hero/Showcase */
        margin-inline: auto !important;
        text-wrap: balance !important;
        white-space: normal !important;
        margin-bottom: 24px !important;
        /* Unified tablet title spacing */
    }

    /* Forcing a tight wrap for the Final CTA/Stats titles to match Hero impact */
    .stats-title {
        font-size: clamp(54px, 7.5vw, 78px) !important;
        line-height: 0.98 !important;
        letter-spacing: -0.045em !important;
        max-width: 16ch !important;
        /* Tight wrap to force multi-line on tablets */
        margin-inline: auto !important;
        text-wrap: balance !important;
        white-space: normal !important;
        margin-bottom: 24px !important;
    }

    .hero-sub,
    .section-sub,
    .about-hero-sub,
    .stats-subtitle,
    .showcase-sub,
    .about-cta-sub {
        font-family: var(--font-main) !important;
        font-size: clamp(23px, 3.2vw, 34px) !important;
        /* Upscaled tablet subtitle */
        line-height: 1.45 !important;
        font-weight: 500 !important;
        /* Unified weight */
        max-width: 42ch !important;
        /* Unified tablet description wrap */
        margin-inline: auto !important;
        text-align: center !important;
        text-wrap: balance !important;
        white-space: normal !important;
        margin-bottom: 40px !important;
        /* Unified tablet content spacing */
    }

    p,
    .value-desc,
    .card-desc,
    .booth-card-desc,
    .faq-a {
        font-size: clamp(18px, 2.2vw, 20px) !important;
        /* Upscaled tablet body text */
        line-height: 1.6 !important;
    }

    .eyebrow,
    .mission-label,
    .mission-stat-label,
    .badge,
    .stat-pill-label {
        font-size: 16px !important;
        /* Upscaled tablet labels */
    }

    .btn-main,
    .booth-card-btn {
        font-size: 20px !important;
        /* Substantial tablet buttons */
        height: 66px !important;
        padding: 0 56px !important;
    }



    .machine-stack {
        width: min(32vw, 280px) !important;
        /* Slightly more compact for better fold visibility */
        max-width: 280px !important;
        height: auto !important;
        aspect-ratio: 200/320;
        margin-top: 16px !important;
        margin-bottom: 24px !important;
        margin-inline: auto !important;
        display: block !important;
    }

    .mask-viewport {
        width: 82% !important;
        height: 94% !important;
        top: 5% !important;
    }

    .stats-section-container {
        padding: 64px 40px !important;
    }

    .stats-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 40px !important;
        /* Increased gap for Pro feel */
        max-width: 900px !important;
        margin-inline: auto !important;
        flex-direction: unset !important;
    }

    .stat-pill {
        padding: 40px 24px !important;
        flex: none !important;
    }

    .stat-pill-value {
        font-size: 48px !important;
    }

    /* --- Upscaled Hero Polaroids for Tablet --- */
    .p1 {
        width: 120px !important;
        top: 40px !important;
        left: -20px !important;
    }

    .p2 {
        width: 100px !important;
        top: 60px !important;
        right: -25px !important;
    }

    .p3 {
        width: 110px !important;
        bottom: 12% !important;
        left: -15px !important;
    }

    .p4 {
        width: 130px !important;
        bottom: 6% !important;
        right: -45px !important;
    }

    .how-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 40px !important;
        /* Increased gap */
        padding: 0 48px !important;
        max-width: 1000px !important;
        margin-inline: auto !important;
        flex-direction: unset !important;
    }

    .how-card {
        padding: 32px !important;
        flex: none !important;
    }

    .booth-types-row {
        gap: 40px !important;
        /* Increased gap */
        padding: 0 48px !important;
        flex-direction: row !important;
        /* Side by side cards */
        align-items: stretch !important;
        /* Make both cards same height */
    }

    .booth-card-wrap {
        width: 50% !important;
        max-width: none !important;
    }

    .booth-card {
        min-height: unset !important;
        aspect-ratio: auto !important;
        flex-direction: column !important;
        /* Image on top like mobile */
        height: 100% !important;
        /* Fill the wrap height for equality */
        overflow: hidden !important;
    }

    .booth-card-visual {
        width: 100% !important;
        aspect-ratio: 1852 / 1626 !important;
        height: auto !important;
        padding: 0 !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

    .booth-card-body {
        width: 100% !important;
        padding: 24px 20px !important;
    }

    .booth-card-title {
        font-size: 20px !important;
        /* Match mobile font sizes user liked */
    }

    .booth-card-desc {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-top: 6px !important;
    }

    .booth-card-features {
        margin: 14px 0 20px !important;
        gap: 8px !important;
    }

    .booth-card-features li {
        font-size: 13px !important;
    }

    .booth-card-cta {
        font-size: 13px !important;
        padding: 10px 20px !important;
    }

    .showcase-section {
        padding: 100px 0 !important;
    }



    .hero-sub,
    .section-sub,
    .stats-subtitle,
    .stats-header {
        margin-bottom: 56px !important;
        /* Unified Content Spacing (Tablet) */
    }

    .machine-stack,
    .stats-row,
    .how-row,
    .booth-types-row,
    .showcase-viewport,
    .cta-content {
        margin-top: 0 !important;
        /* Managed by subtitle margin */
    }
}


#landing-screen {
    position: relative;
}

.scroll-indicator-container {
    display: flex;
    width: 100%;
    z-index: 9999;
    pointer-events: none;
    transition: opacity 0.5s ease;
    /* FIX: Ensure compositing context on Chrome iOS and old Android */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.scroll-indicator {
    width: 52px;
    height: 52px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: default;
    pointer-events: auto;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.scroll-indicator svg {
    color: #000;
    width: 22px;
    height: 22px;
    stroke-width: 2.5px;
}

.scroll-indicator .arrow-top {
    animation: chevron-cascade 1.5s infinite;
}

.scroll-indicator .arrow-bottom {
    animation: chevron-cascade 1.5s infinite;
    animation-delay: 0.15s;
}

@keyframes chevron-cascade {
    0% {
        opacity: 0;
        transform: translateY(-3px);
    }

    50% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(3px);
    }
}


/* Responsive Placement */
@media (max-width: 1024px) {
    .scroll-indicator-container {
        position: relative;
        margin-top: 24px;
        justify-content: center;
        width: 100%;
        bottom: auto;
        left: auto;
        transform: none;
        margin-bottom: 12px;
        /* Tightened gap */
        display: flex !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .scroll-indicator-container {
        position: relative !important;
        /* Back to relative flow */
        margin-top: 32px !important;
        /* Strict 32px gap below CTA */
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        margin-bottom: 0 !important;
        justify-content: center !important;
        display: flex !important;
    }
}

@media (min-width: 1025px) {
    .scroll-indicator-container {
        position: absolute;
        bottom: 24px;
        /* Moved further down */
        right: 60px;
        width: auto;
        justify-content: flex-end;
    }
}

/* Premium Web App Safe Area Support */
@supports (padding: env(safe-area-inset-bottom)) {
    @media (max-width: 1024px) {
        .scroll-indicator-container {
            /* On relative flow, we use margin, NOT bottom offset */
            bottom: auto;
            margin-bottom: calc(12px + env(safe-area-inset-bottom));
        }
    }

    @media (min-width: 1025px) {
        .scroll-indicator-container {
            bottom: calc(24px + env(safe-area-inset-bottom));
            right: calc(60px + env(safe-area-inset-right));
        }
    }
}

/* --- TABLET LANDSCAPE: Adjust Polaroid Positions --- */
@media (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) {
    .p1 {
        width: 100px !important;
        top: 15px !important;
        left: -10px !important;
    }
    .p2 {
        width: 85px !important;
        top: 25px !important;
        right: -10px !important;
    }
    .p3 {
        width: 90px !important;
        bottom: 12% !important;
        left: -5px !important;
    }
    .p4 {
        width: 110px !important;
        bottom: 8% !important;
        right: -15px !important;
    }

    /* --- Booth Cards Landscape Fix --- */
    .booth-types-row {
        gap: 32px !important;
        padding: 0 40px !important;
        flex-direction: row !important;
        align-items: stretch !important;
    }

    .booth-card-wrap {
        width: calc(50% - 16px) !important;
        max-width: none !important;
    }

    .booth-card {
        height: 100% !important;
        flex-direction: column !important;
        aspect-ratio: auto !important;
    }

    .booth-card-visual {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1852 / 1626 !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

    .booth-card-body {
        width: 100% !important;
        padding: 24px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        flex: 1 !important;
    }

    .booth-card-title {
        font-size: 22px !important;
    }

    .booth-card-desc {
        font-size: 15px !important;
        line-height: 1.5 !important;
        margin-top: 6px !important;
    }

    .booth-card-features {
        margin: 16px 0 24px !important;
        gap: 12px !important;
    }

    .booth-card-cta {
        font-size: 15px !important;
        padding: 14px 24px !important; /* Slightly taller padding for a larger touch target */
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        margin-top: auto !important;
    }
}

button, input[type="button"], input[type="submit"] {
    -webkit-appearance: none;
    appearance: none;
}


/* --- AGGRESSIVE OVERRIDE FOR ALL BUTTON SHADOWS ON IOS --- */
button, input[type="button"], input[type="submit"], .btn-main, .btn-action, .btn-primary, .btn-secondary, .retake, .save, .share {
    -webkit-appearance: none !important;
    appearance: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
}

@media (max-width: 1024px) {
    .btn-wrap::before, .btn-wrap::after, .btn-wrap:hover::before, .btn-wrap:hover::after, .btn-wrap:active::before, .btn-wrap:active::after {
        display: none !important;
        transform: translate(0,0) !important;
        box-shadow: none !important;
    }
}


/* --- BULLETPROOF IOS SHADOW FIX --- */
button, input[type="button"], input[type="submit"], .btn-main, .btn-action, .btn-primary, .btn-secondary, .retake, .save, .share, .btn-wrap {
    -webkit-appearance: none !important;
    appearance: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
}

@media (max-width: 1024px) {
    .btn-wrap::before, .btn-wrap::after, .btn-wrap:hover::before, .btn-wrap:hover::after, .btn-wrap:active::before, .btn-wrap:active::after {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        content: none !important;
    }
}
