/* Basic CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --color-background: oklch(1 0 0); /* Equivalent to white */
    --color-foreground: oklch(.145 0 0); /* Dark gray / near black for text */
    --color-primary: oklch(.205 0 0); /* A slightly lighter dark shade for primary elements */
    --color-primary-foreground: oklch(.985 0 0); /* Light color for text on primary background */
    --color-border: oklch(.922 0 0); /* Light gray for borders */
    --header-height: 3.5rem; /* 56px, similar to h-14 */
    --padding-x-header: 1rem; /* similar to px-4 */
    --padding-y-header: 1rem; /* for overall balance */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-foreground);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

header {
    /* Making the header a bit taller to accommodate the nav's top margin */
    padding-top: 1rem; /* Add some space above the nav */
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50; /* Common z-index for sticky headers */
    /* The actual background/blur will be on the nav, header is a container */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: var(--breakpoint-xl, 80rem);
    margin: 0 auto; /* Centering nav initially */
    height: var(--header-height);
    padding: 0 var(--padding-x-header);

    /* Styling from pfp.fm for the floating, rounded effect */
    background-color: oklch(1 0 0 / 0.8); /* White with 80% opacity */
    -webkit-backdrop-filter: blur(12px); /* Blur for content behind */
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: 9999px; /* rounded-full */
    box-shadow: 0 2px 20px -2px rgba(0,0,0,0.05); /* Specific shadow */
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Smooth transition for hover (though hover not explicitly defined yet for nav itself) */
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* similar to gap-6 in pfp.fm */
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem; /* similar to gap-4 in pfp.fm */
}

nav .logo {
    font-size: 1.25rem; /* text-xl */
    letter-spacing: 0.15em; /* Increased letter spacing for better visual separation */
    /* Attempting gradient text - might need browser-specific prefixes or adjustments */
    background: linear-gradient(to right, oklch(0.145 0 0), oklch(0.4 0.01 250)); /* from black to a grayish blue */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Style for PFPX logo parts */
nav .logo .pfp-part {
    font-weight: 600; /* semibold */
}

nav .logo .x-part {
    font-weight: 700; /* bold */
}

nav ul.desktop-nav-links {
    list-style: none;
    display: flex; /* Hidden on mobile by default, shown on md via media query later */
    align-items: center;
    gap: 1.5rem; /* similar to gap-6 */
}

nav ul.desktop-nav-links li a {
    text-decoration: none;
    color: var(--muted-foreground, oklch(0.556 0 0)); /* Muted text color */
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    transition: color 0.2s ease-in-out;
}

nav ul.desktop-nav-links li a:hover {
    color: var(--color-foreground);
}

/* Sign In Button Style (less prominent) */
.sign-in-button {
    background-color: transparent;
    color: var(--muted-foreground, oklch(0.556 0 0));
    padding: 0.5rem 1rem; /* h-9 px-4 py-2 roughly */
    border-radius: 9999px; /* rounded-full */
    border: 1px solid transparent; /* No border by default */
    font-weight: 500;
    font-size: 0.875rem; /* text-sm */
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
    cursor: pointer;
    display: inline-flex; /* To align with other items if needed */
    align-items: center;
    justify-content: center;
}

.sign-in-button:hover {
    color: var(--color-foreground);
    background-color: var(--accent, oklch(0.97 0 0)); /* Accent color on hover, like hover:bg-accent */
}

nav .get-started-button {
    background-color: var(--color-primary);
    color: var(--color-primary-foreground);
    padding: 0.5rem 1rem; /* h-9 px-4 py-2 roughly */
    border-radius: 9999px; /* rounded-full */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem; /* text-sm */
    transition: background-color 0.2s ease-in-out;
    margin-left: 0; /* Remove previous margin, gap handles spacing now */
}

nav .get-started-button:hover {
    background-color: oklch(0.25 0 0); /* Darken primary color on hover */
}

/* General Section Styling */
section {
    padding: 4rem 1rem; /* Roughly 64px padding, similar to py-16 or py-20 in Tailwind */
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    scroll-margin-top: calc(var(--header-height) + 1rem); /* Offset for sticky header + a bit of space */
}

section:last-of-type {
    border-bottom: none;
}

section h1 { /* For Hero H1 */
    font-family: var(--font-primary);
    font-size: 4rem; /* Increased from 3.75rem, (64px if base is 16px) */
    font-weight: 900; /* Made it even bolder, like Tailwind's font-black */
    letter-spacing: -0.03em; 
    line-height: 1.1; 
    margin-bottom: 1.5rem; /* Space below heading */
    color: var(--color-foreground);
}

section h2 { /* For section titles */
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700; /* font-bold */
    letter-spacing: var(--tracking-tight, -0.025em);
    margin-bottom: 0.5rem; /* mb-2 */
}

.section-subtitle { /* For subtitles like "Before & After" or "How it Works" */
    font-size: 0.875rem; /* text-sm */
    font-weight: 600; /* font-semibold */
    color: oklch(0.534 0.109 255.01); /* text-indigo-600 or similar primary accent */
    text-transform: uppercase;
    letter-spacing: 0.05em; /* tracking-wide */
    margin-bottom: 1rem; /* mb-4 */
}

section p {
    font-size: 1.125rem; /* text-lg */
    color: var(--muted-foreground, oklch(0.556 0 0));
    max-width: 60ch; /* Limit line length for readability */
    margin: 0 auto 1.5rem auto; /* Center and add bottom margin */
}

section p.subtitle { /* Specifically for hero subtitle */
    font-size: 1.125rem; 
    color: var(--muted-foreground, oklch(0.45 0 0)); 
    max-width: 50ch; 
    margin-bottom: 2.5rem; 
    margin-top: 0; /* Remove the recently added margin-top */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem; /* Increased padding (py-3.5 px-7 roughly) */
    border-radius: 9999px; 
    text-decoration: none;
    font-weight: 600; /* Made buttons a bit bolder */
    font-size: 1.05rem; /* Slightly increased font size */
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-primary-foreground);
}

.btn-primary:hover {
    background-color: oklch(0.25 0 0); /* Darken primary */
}

.btn-primary:disabled,
.btn-primary:disabled:hover {
    background-color: oklch(0.85 0 0); /* Lighter, desaturated color for disabled */
    color: oklch(0.65 0 0); /* Muted text color for disabled */
    cursor: not-allowed;
    border-color: oklch(0.9 0 0); /* Optional: slightly different border for disabled */
}

.btn-secondary {
    background-color: oklch(0.97 0 0); /* light accent/gray */
    color: var(--color-foreground);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: oklch(0.922 0 0); /* Slightly darker accent/gray */
}

.btn-secondary:disabled,
.btn-secondary:disabled:hover {
    background-color: oklch(0.95 0 0); /* Very light gray for disabled secondary */
    color: oklch(0.75 0 0);      /* More muted text */
    border-color: oklch(0.922 0 0); /* Keep border subtle or match background */
    cursor: not-allowed;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Hero Section */
#hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 5rem; /* Adjusted padding */
    padding-bottom: 5rem; /* Adjusted padding */
    gap: 2rem; /* Adjusted gap */
    max-width: var(--breakpoint-xl, 80rem);
    margin: 0 auto;
    min-height: calc(90vh - var(--header-height)); /* Making it taller, removed header top padding from calc */
    box-sizing: border-box;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.product-hunt-badge {
    margin-bottom: 1.5rem;
}

.product-hunt-badge img {
    width: 180px; /* Smaller width for the badge */
    height: auto;
    /* margin-bottom: 1rem; /* Adjust if needed, was part of .product-hunt-badge div */
}

#hero .hero-content h1,
#hero .hero-content p {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.example-styles {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground, oklch(0.556 0 0));
}

.hero-image-showcase {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Gap between small previews and main image */
    flex-shrink: 0; /* Prevent image showcase from shrinking too much */
}

.hero-image-showcase > img { /* The large placeholder */
    width: 550px; /* Increased from 520px */
    height: 550px; /* Increased from 520px */
    background-color: #e0e0e0;
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.08), 
                0px 16px 32px rgba(0, 0, 0, 0.06), 
                0px 24px 48px rgba(0, 0, 0, 0.05); /* New, cleaner drop shadow */
    object-fit: cover; /* Ensure image covers the area if aspect ratio differs */
    color: transparent;
    font-size: 0;
    line-height: 0;
}

.avatar-previews {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* gap-3, space between small previews */
    flex-shrink: 0;
}

.avatar-previews img {
    width: 96px; 
    height: 96px; 
    background-color: #e0e0e0; 
    border-radius: 0.5rem; 
    border: 2px solid oklch(0.85 0 0); /* More visible light gray for default border */
    object-fit: cover;
    color: transparent;
    font-size: 0;
    line-height: 0;
    transition: border-color 0.2s ease-in-out, border-width 0.2s ease-in-out;
    cursor: pointer; 
    box-sizing: border-box; /* Ensure padding/border are part of width/height */
}

.avatar-previews img:not(.selected-preview):hover {
    border-color: oklch(0.6 0 0); /* Medium-dark gray for non-selected hover */
}

.avatar-previews img.selected-preview {
    border: 3px solid var(--color-foreground); /* Prominent black/very dark, thicker border */
}

.avatar-previews img.selected-preview:hover {
    border-color: var(--color-foreground); 
    border-width: 3px; /* Ensure hover doesn't thin it out if there was a general hover rule */
}

/* Image Comparison Slider Styles */
.image-comparison-slider {
    position: relative;
    width: 550px; /* Same as old hero image */
    height: 550px; /* Same as old hero image */
    overflow: hidden;
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.08), 
                0px 16px 32px rgba(0, 0, 0, 0.06), 
                0px 24px 48px rgba(0, 0, 0, 0.05); /* Existing drop shadow */
    cursor: col-resize; /* Indicate it's draggable horizontally */
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* Prevent images from interfering with drag */
}

.comparison-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* Initially show half of the generated image */
    height: 100%;
    overflow: hidden; /* This is what creates the sliding effect */
    pointer-events: none;
}

.comparison-image-overlay .generated-image {
    width: 550px; /* Ensure the image inside is full width of the container */
    height: 550px;
    object-fit: cover;
    /* No position:absolute here, it's contained by the overlay */
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%; /* Start in the middle */
    width: 4px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    transform: translateX(-50%); /* Center the handle line */
    pointer-events: none; /* Let slider container handle drag */
    z-index: 10;
}

.slider-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0,0,0,0.2);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    transform: translate(-50%, -50%); /* Center the circle on the handle */
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-circle::before, .slider-circle::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--color-foreground);
    border-left: 2px solid var(--color-foreground);
}

.slider-circle::before {
    transform: rotate(-45deg) translate(1px, 1px);
    left: 8px;
}

.slider-circle::after {
    transform: rotate(135deg) translate(1px, 1px);
    right: 8px;
}

/* Before & After Section */
#before-after h2 {
    font-size: 1rem;
    font-weight: 500;
    color: oklch(0.534 0.109 255.01);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

#before-after .section-subtitle {
    font-size: 3.25rem;
    font-weight: 700;
    color: var(--color-foreground);
    text-transform: none;
    letter-spacing: var(--tracking-tight, -0.025em);
    margin-bottom: 0.5rem;
}

#before-after p {
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

/* REMOVE or comment out .avatar-grid as it's replaced by .avatar-scroll-container */
/*
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
    gap: 1.5rem; 
    max-width: 1200px;
    margin: 0 auto;
}
*/

.avatar-scroll-container {
    width: 100vw; /* Make it full viewport width */
    margin-left: 50%;
    transform: translateX(-50%);
    overflow: hidden; 
    padding: 1rem 0; 
}

#before-after { /* Parent section */
    overflow-x: hidden; /* Prevent horizontal scrollbar due to 100vw child */
    /* Keep existing padding, the 100vw container will overlay it */
    padding-top: 8rem; /* Increased top padding further to 8rem */
}

.avatar-scroll-row {
    display: flex;
    flex-wrap: nowrap; 
    gap: 2.5rem; /* Increased gap (40px) */
    /* Width: (item_width + gap) * (number_of_items_in_one_set * 2_sets) */
    width: calc((200px + 2.5rem) * 6 * 2); /* Item: 200px, Gap: 2.5rem (40px) */
    margin-bottom: 2.5rem; /* Increased space between rows */
    will-change: transform;
}

.avatar-scroll-row:last-child {
    margin-bottom: 0;
}

.scroll-right-to-left {
    transform: translateX(0%); 
    animation: scroll-rtl 80s linear infinite; /* Slower due to larger items/gaps */
}

.scroll-left-to-right {
    /* Initial state: pre-translate to hide the seam. The animation will start from this point. */
    transform: translateX(calc(-1 * ((200px + 2.5rem) * 6))); /* Translate by exactly one full set of 6 items */
    animation: scroll-ltr-final 80s linear infinite; /* Slower due to larger items/gaps */
}

@keyframes scroll-ltr-final {
    0% {
        /* This transform is already applied initially on the class */
        transform: translateX(calc(-1 * ((200px + 2.5rem) * 6))); 
    }
    100% {
        /* Scroll one full set to the right, effectively showing the duplicated set taking over */
        transform: translateX(0px); 
    }
}

@keyframes scroll-rtl {
    0% {
        transform: translateX(0%); 
    }
    100% {
        transform: translateX(-50%); 
    }
}

.avatar-item { 
    flex-shrink: 0; 
    width: 200px; /* Increased item width */
}

.avatar-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; 
    background-color: #e0e0e0; 
    border-radius: 0.75rem; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); 
    transition: transform 0.3s ease;
    color: transparent;
    font-size: 0;
    line-height: 0;
}

.avatar-item img:hover {
    transform: scale(1.05);
}

/* How It Works Section */
#how-it-works .section-subtitle {
    font-size: 3.25rem;
    font-weight: 700;
    color: var(--color-foreground);
    text-transform: none;
    letter-spacing: var(--tracking-tight, -0.025em);
    margin-bottom: 0.5rem;
}
#how-it-works h2 {
    font-size: 1rem;
    font-weight: 500;
    color: oklch(0.534 0.109 255.01);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

#how-it-works > p {
    margin-bottom: 3rem;
}

/* Modern Process Flow */
.process-flow {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.flow-step:last-child {
    margin-bottom: 0;
}

.step-visual {
    flex-shrink: 0;
    position: relative;
}

.step-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, oklch(0.534 0.109 255.01), oklch(0.6 0.12 260));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px -8px oklch(0.534 0.109 255.01/0.4);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-circle:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px -8px oklch(0.534 0.109 255.01/0.5);
}

.step-circle svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
}

.step-connector {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, oklch(0.534 0.109 255.01/0.3), oklch(0.534 0.109 255.01/0.1));
    z-index: 1;
}

.flow-step:last-child .step-connector {
    display: none;
}

.step-content {
    flex: 1;
    text-align: left;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-foreground);
    line-height: 1.3;
}

.step-content p {
    font-size: 1rem;
    color: var(--muted-foreground, oklch(0.556 0 0));
    line-height: 1.5;
    margin: 0;
    max-width: none;
}

/* Mobile responsiveness for process flow */
@media (max-width: 768px) {
    .process-flow {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .flow-step {
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }
    
    .step-circle {
        width: 70px;
        height: 70px;
    }
    
    .step-circle svg {
        width: 28px;
        height: 28px;
    }
    
    .step-content h3 {
        font-size: 1.25rem;
    }
    
    .step-content p {
        font-size: 0.9rem;
    }
}

/* Pricing Section */
#pricing h2 {
    font-size: 1rem;
    font-weight: 500;
    color: oklch(0.534 0.109 255.01);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

#pricing .section-subtitle {
    font-size: 3.25rem;
    font-weight: 700;
    color: var(--color-foreground);
    text-transform: none;
    letter-spacing: var(--tracking-tight, -0.025em);
    margin-bottom: 0.5rem;
}

#pricing > p {
    margin-bottom: 3rem;
}

.pricing-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: stretch;
}

.pricing-card {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    padding: 2rem;
    border-radius: 0.75rem;
    width: 100%;
    max-width: 380px;
    text-align: left;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03), 0 2px 4px -1px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.popular {
    border-color: oklch(0.534 0.109 255.01);
    border-width: 2px;
    box-shadow: 0 10px 15px -3px oklch(0.534 0.109 255.01/0.2), 0 4px 6px -2px oklch(0.534 0.109 255.01/0.1);
}

.popular-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: oklch(0.534 0.109 255.01); /* Indigo for Popular */
    color: var(--color-primary-foreground);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* Best Value Card Styling */
.pricing-card.best-value {
    border-color: oklch(0.7 0.15 130); /* Greenish accent for Best Value */
    border-width: 2px;
    box-shadow: 0 10px 15px -3px oklch(0.7 0.15 130 / 0.2), 0 4px 6px -2px oklch(0.7 0.15 130 / 0.1);
}

.best-value-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: oklch(0.7 0.15 130); /* Greenish accent for Best Value */
    color: var(--color-primary-foreground);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-foreground);
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: 0.5rem; /* Matched to h3 margin-bottom */
    line-height: 1;
    text-align: left !important; /* Ensure left alignment for price block */
    width: 100%; /* Ensure it takes full width to allow text-align to work as expected */
}
.pricing-card .price sup {
    font-size: 1.5rem;
    font-weight: 500;
    top: -0.7em;
}
.pricing-card .price span { /* For '/generation' or '/bundle' */
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground, oklch(0.556 0 0));
    margin-left: 0.25rem; 
    /* text-align: left; -- not needed here, parent .price handles alignment */
}

.pricing-card .description {
    font-size: 0.875rem;
    color: var(--muted-foreground, oklch(0.556 0 0));
    margin-bottom: 0.5rem; /* Matched to h3 margin-bottom */
    min-height: 2.5em; /* Or adjust as needed */
    text-align: left !important; 
    width: 100%; 
    font-weight: 600; /* Make description semibold */
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 1rem; /* Space after the UL, before card bottom padding */
    padding-left: 0; 
}

.pricing-card ul li {
    font-size: 0.875rem;
    color: var(--muted-foreground, oklch(0.556 0 0));
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    text-align: left; /* Ensure list items are left aligned */
}

.pricing-card ul li .checkmark {
    color: oklch(0.6 0.15 130);
    font-weight: bold;
    margin-right: 0.5rem;
    font-size: 1rem;
}

.pricing-card .btn {
    margin-bottom: 2rem; /* INCREASED space BELOW button, BEFORE ul */
    padding-top: 0.6rem;    
    padding-bottom: 0.6rem; 
    font-size: 0.95rem; 
    width: 100%; /* Make buttons full width of their container */
    box-sizing: border-box; /* Ensure padding/border don't add to width */
}

/* Specific styling for 'Coming Soon' button in pricing card if it's .btn-secondary */
.pricing-card .btn-secondary {
    background-color: transparent;
    color: var(--muted-foreground, oklch(0.556 0 0));
    border: 1px solid var(--color-border);
}

.pricing-card .btn-secondary:hover {
    background-color: oklch(0.97 0 0); /* Light accent on hover */
    color: var(--color-foreground);
}

/* CTA Section */
#cta {
    background-color: oklch(0.97 0 0); /* Light gray background for the section */
    padding: 5rem 1rem; /* Keep existing padding or adjust */
    text-align: center; /* Center the card */
}

.cta-card {
    background-color: oklch(0.145 0 0); /* Dark background for the card */
    color: var(--color-background); /* Light text for the card */
    padding: 3rem 2rem; /* Padding inside the card */
    border-radius: 1rem; /* Rounded corners for the card */
    max-width: 960px; /* Increased max width */
    margin: 0 auto; /* Center the card */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1), 0 6px 6px rgba(0,0,0,0.1); /* Softer, more spread shadow */
}

#cta .cta-card h2 {
    font-size: 2rem; /* Original size */
    color: var(--color-background);
    margin-bottom: 1rem;
}

#cta .cta-card p {
    color: oklch(0.8 0 0);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 60ch; /* Already have this, good for readability */
    margin-left: auto;
    margin-right: auto;
}

#cta .cta-card .btn-primary {
    background-color: var(--color-background); /* White button */
    color: var(--color-primary); /* Dark text on button */
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

#cta .cta-card .btn-primary:hover {
    background-color: oklch(0.922 0 0); /* Slightly off-white hover */
}

/* Footer */
footer {
    text-align: left; /* Align text to left for footer content */
    padding: 0; /* Remove old padding, will be handled by inner divs */
}

.footer-main-content {
    background: var(--color-background); /* White background */
    color: var(--color-foreground); /* Dark text */
    padding: 4rem 2rem; /* Adjusted Padding for main footer area */
    max-width: var(--breakpoint-xl, 80rem); /* Consistent max-width */
    margin: 0 auto; /* Center content */
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align items to the top */
    gap: 2rem; /* Gap between left brand and right links */
}

.footer-left-brand {
    flex-basis: 25%; /* Give it some base width */
    min-width: 200px;
}

.footer-logo {
    font-size: 1.5rem; /* Larger logo */
    letter-spacing: 0.15em; /* Increased letter spacing for better visual separation */
    margin-bottom: 0.5rem;
    /* Gradient text if desired, or simple color: var(--color-foreground); */
    background: linear-gradient(to right, oklch(0.145 0 0), oklch(0.4 0.01 250)); 
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block; /* For gradient to work well */
}

/* Style for footer PFPX logo parts */
.footer-logo .pfp-part {
    font-weight: 600; /* semibold */
}

.footer-logo .x-part {
    font-weight: 700; /* bold */
}

.footer-tagline {
    font-size: 1rem;
    color: var(--muted-foreground, oklch(0.556 0 0));
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: space-between; 
    flex-wrap: nowrap; /* Keep link columns in one row */
    gap: 2rem; 
    flex-basis: 70%; /* Allow link section to take more space */
    /* Removed align-items: flex-start from here, parent handles it */
}

.link-column {
    /* flex: 1; -- Removed this, let the content and gap define width */
    min-width: 120px; /* Adjusted min-width slightly if needed */
}

.link-column h3 {
    font-size: 0.875rem; /* text-sm */
    font-weight: 600; /* font-semibold */
    color: var(--color-foreground);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.link-column ul {
    list-style: none;
}

.link-column ul li a {
    color: var(--muted-foreground, oklch(0.556 0 0));
    text-decoration: none;
    font-size: 0.875rem; /* text-sm */
    line-height: 1.75; /* More space between links */
    transition: color 0.2s ease-in-out;
}

.link-column ul li a:hover {
    color: var(--color-primary);
}

.footer-bottom-bar {
    background-color: var(--color-background); /* Changed to white, same as main footer */
    color: var(--muted-foreground, oklch(0.556 0 0));
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    border-top: 1px solid var(--color-border);
    display: flex; /* For pfp.fm like layout */
    justify-content: space-between; /* For pfp.fm like layout */
    max-width: var(--breakpoint-xl, 80rem); /* Consistent max-width */
    margin: 0 auto; /* Center content */
}

/* Basic Mobile Responsiveness (we'll refine this heavily) */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    nav ul li {
        margin: 10px 0;
    }
    .pricing-options {
        flex-direction: column;
        align-items: center;
    }
    .footer-links {
        flex-direction: column;
        align-items: center;
    }
    .link-column {
        margin-bottom: 20px;
    }
}

/* Custom Product Hunt Badge */
.custom-product-hunt-badge {
    display: inline-flex; 
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 2rem; /* More rounded for modern look */
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 1.5rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.custom-product-hunt-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.1);
    border-color: #d1d5db;
}

.ph-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #FF6154 0%, #FF4A3A 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.ph-icon svg {
    width: 16px;
    height: 16px;
    fill: white;
}

.ph-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.ph-title {
    font-size: 0.8rem;
    font-weight: 600; 
    color: var(--color-foreground); 
    letter-spacing: -0.01em;
    margin-bottom: 0.125rem;
}

.ph-subtitle {
    font-size: 0.7rem;
    font-weight: 500; 
    color: #FF6154;
    letter-spacing: 0.01em;
}

/* Styles for generate.html - Generation Page */
main#generation-page {
    max-width: var(--breakpoint-xl, 80rem);
    margin: 2rem auto; /* Add some top/bottom margin */
    padding: 0 1rem; /* Horizontal padding */
}

.generation-step {
    background-color: var(--color-background);
    /* border: 1px solid var(--color-border); */ /* Optional border for steps */
    /* border-radius: 0.75rem; */ /* Optional border-radius for steps */
    padding: 2rem; /* Padding within each step */
    margin-bottom: 2rem; /* Space between steps if multiple were visible */
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.05); */ /* Optional subtle shadow */
}

.section-header-block {
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem; 
    margin-bottom: 2rem;
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; /* Changed from center to flex-end */
}

.header-text-content {
    flex-grow: 1; 
    padding-top: 0; /* Removed previous top padding */
}

.section-header-block .header-text-content h1,
.section-header-block .header-text-content p {
    margin-left: 0; /* Ensure no unexpected left margin */
    padding-left: 0; /* Ensure no unexpected left padding */
}

.section-header-block .header-text-content h1 {
    margin-bottom: 0.25rem; /* Tighter spacing between title and subtitle */
}

.header-actions {
    display: flex;
    gap: 0.75rem; 
    flex-shrink: 0; 
    /* Buttons are naturally aligned to their container's top by flex-start on parent */
}

.btn.btn-header-action {
    padding: 0.5rem 1rem; /* h-9 px-4 py-2 roughly */
    font-size: 0.875rem; /* text-sm */
    border-radius: 0.375rem; /* rounded-md, less pill-like */
    line-height: 1.5; /* Ensure text is vertically centered well */
}

/* Ensure default p styling within header is not too wide */
.section-header-block .header-text-content p {
    max-width: 70ch; /* Adjust as needed */
    margin-bottom: 0; /* Remove default bottom margin for p if any */
}

/* Style Selection Step Specifics */
/* #style-selection-step .style-selection-header h1 { */ /* Commenting out overly specific rule */
    /* font-size: 2rem; */ /* A bit smaller for step title */
/* } */

/* General styling for H1 within any generation step header */
#generation-page .generation-step .section-header-block .header-text-content h1 {
    font-size: 2rem; /* Standardized step title size */
    font-weight: 700; /* Ensure consistent weight */
    color: var(--color-foreground);
    margin-bottom: 0.25rem;
}

/* Ensure consistent paragraph styling in step headers */
#generation-page .generation-step .section-header-block .header-text-content p {
    font-size: 1rem; /* Standardized step subtitle size */
    color: var(--muted-foreground, oklch(0.556 0 0));
    margin-bottom: 0;
    line-height: 1.5;
}

/* Moved Step Navigation to be after header, before body */
/* This specific rule might be redundant now if buttons are in the header block */
/* #style-selection-step .step-navigation-footer {
    margin-top: 0; 
    margin-bottom: 2rem; 
    padding-top: 0; 
    padding-bottom: 1.5rem; 
    border-top: none; 
    border-bottom: 1px solid var(--color-border); 
} */

.style-selection-body {
    /* display: flex; */ /* No longer needed as preview pane is gone */
    /* gap: 2rem; */
    /* align-items: flex-start; */
}

.style-grid-container {
    /* flex: 3; */ 
    width: 100%; 
    /* max-height: 70vh; */ /* REMOVED for page scroll */
    /* overflow-y: auto; */  /* REMOVED for page scroll */
    /* padding-right: 1rem; */ /* REMOVED as scrollbar is gone */
    /* border: 1px solid var(--color-border); */ /* REMOVED border for scrollable area */
    /* border-radius: 0.5rem; */ /* REMOVED border-radius for scrollable area */
    padding: 0; /* Reset padding if it was for the scroll container */
}

.style-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4-column grid */
    gap: 1rem; 
}

.style-item {
    border: 2px solid var(--color-border);
    border-radius: 0.5rem; 
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out; /* Added transform */
    background-color: var(--color-background);
    position: relative; 
    overflow: hidden; 
    aspect-ratio: 1 / 1; /* Enforce square shape */
}

.style-item:hover {
    border-color: oklch(0.534 0.109 255.01); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: scale(1.03); /* Slight scale on hover */
}

.style-item.selected {
    border-color: oklch(0.534 0.109 255.01); 
    box-shadow: 0 0 0 3px oklch(0.534 0.109 255.01 / 0.4); 
}

.style-item img {
    width: 100%;
    height: 100%; /* Image takes full height of square parent */
    object-fit: cover;
    margin-bottom: 0; 
    display: block; 
}

.style-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, oklch(0.145 0 0 / 0.85) 0%, oklch(0.145 0 0 / 0) 70%); /* Gradient adjusted */
    padding: 0.75rem;
    padding-top: 2rem; /* More padding at top of overlay to push text down */
    color: var(--color-primary-foreground); 
    text-align: left;
    border-bottom-left-radius: calc(0.5rem - 2px); 
    border-bottom-right-radius: calc(0.5rem - 2px);
    opacity: 0; /* Hidden by default */
    transition: opacity 0.2s ease-in-out;
}

.style-item:hover .style-item-overlay {
    opacity: 1; /* Show on hover */
}

.style-item-overlay h3 {
    font-size: 0.9rem; 
    font-weight: 600; 
    color: var(--color-primary-foreground);
    margin-bottom: 0; /* Removed bottom margin as description is gone */
    line-height: 1.3;
    /* Positioned by overlay padding */
}

/* Removed .style-item-overlay .style-description as it's no longer in HTML */

.style-selected-indicator {
    display: none; /* Hidden by default */
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: oklch(0.534 0.109 255.01);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: bold;
    line-height: 24px; /* Center checkmark */
    text-align: center;
}

.style-item.selected .style-selected-indicator {
    display: block;
}

/* Step Navigation Footer - General styling if it were at the bottom */
/* We have specifically restyled the one in #style-selection-step above */
/* So this can be a general fallback or for other steps if they differ */
/*
.step-navigation-footer:not(#style-selection-step .step-navigation-footer) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}
*/

/* Ensure placeholder images in generate.html are square-ish too */
#style-selection-step .style-grid-container .style-item img {
    /* aspect-ratio: 1 / 1; */ /* Handled by .style-item aspect-ratio and img height 100% */
}

/* #style-selection-step .style-preview-pane #preview-image-large { */ /* REMOVED */
    /* aspect-ratio: 1 / 1; */
/* } */

/* Custom Alert Modal Styles */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: oklch(0.145 0 0 / 0.5); /* Semi-transparent dark overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's on top */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.custom-modal-overlay.modal-visible {
    opacity: 1;
    pointer-events: auto;
}

.custom-modal-content {
    background-color: var(--color-background);
    padding: 2rem;
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative; /* For close button positioning */
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}

.custom-modal-overlay.modal-visible .custom-modal-content {
    transform: scale(1);
}

.custom-modal-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--muted-foreground, oklch(0.556 0 0));
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

.custom-modal-close-btn:hover {
    color: var(--color-foreground);
}

.custom-modal-content h3 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600;
    color: var(--color-foreground);
    margin-bottom: 1rem;
    margin-top: 0.5rem; /* Space below close button */
}

.custom-modal-content p {
    font-size: 1rem; /* text-base */
    color: var(--muted-foreground, oklch(0.556 0 0));
    line-height: 1.6;
    margin-bottom: 0; /* Remove default if any, specific buttons can add margin */
}

/* Optional: Add a button to the modal if needed for confirmation etc. */
/* .custom-modal-actions {
    margin-top: 1.5rem;
} */

/* Generation Page - Upload Step Specifics */
.upload-step-body {
    display: flex;
    /* gap: var(--space-xxl); */ /* Temporarily rely on padding for inter-column space */
    align-items: flex-start; 
}

.upload-area-container {
    flex: 0 0 45%; 
    max-width: 45%; 
    /* padding-right: var(--space-xl); */ /* Handled by guidelines-container padding-left */
}

.upload-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border: 2px dashed #cccccc;
    border-radius: 0.75rem;
    background-color: #fafafa;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.upload-box.has-preview {
    padding: 0;
}

.upload-box.has-preview > :not(#image-preview) {
    display: none;
}

.upload-box.has-preview #image-preview {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 0.5rem;
}

.upload-box:hover {
    border-color: #667eea;
    background-color: #f8faff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.upload-box .upload-icon {
    width: 48px;
    height: 48px;
    fill: #666;
    margin-bottom: 1rem;
}

.upload-box span {
    color: #333;
    font-size: 1rem;
    font-weight: 500;
}

.upload-box .upload-box-subtitle {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

.guidelines-container {
    flex: 0 0 55%; 
    max-width: 55%;
    padding-left: 3rem; /* FORCEFUL PADDING - DEBUGGING/REFINEMENT */
    display: flex;
    flex-direction: column;
    gap: var(--space-l); 
    text-align: left; /* Align all text content to the left */
}

.guidelines-header {
    margin-bottom: var(--space-xl); 
    background-color: transparent !important; /* Reverted: No background */
}

.guidelines-header h3 {
    font-size: 2rem; /* Reverted: Intended size */
    font-weight: 700;
    color: var(--color-text-primary, #111111); /* Reverted: Intended color, added fallback */
    margin-bottom: var(--space-m); 
    line-height: 1.2;
}

.guidelines-header p {
    font-size: 1.125rem; 
    color: var(--color-text-secondary, #555555);
    max-width: 60ch; 
    line-height: 1.6;
    margin-bottom: 2rem; /* DECREASED from 3rem */
    border-top: none !important; 
}

.guidelines-section {
    background-color: transparent; 
    padding: 0; 
    border-radius: 0; 
    border: none; 
    margin-bottom: 2rem; /* DECREASED from 3rem - Space between Do's and Don'ts sections */
}

.guidelines-section:last-of-type {
    margin-bottom: 0;
}

.guidelines-section h4 {
    font-size: 1.25rem; 
    font-weight: 600; 
    color: var(--color-text-primary, #111111);
    margin-bottom: 1rem; /* DECREASED from 1.5rem - Space before bullet points */
    padding-left: 0 !important; 
    background-color: transparent !important; 
}

.guidelines-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    /* margin-bottom: var(--space-xl); */ /* Space after the list, before next H4 if sections were not gapped */
}

.guidelines-section li {
    display: flex;
    align-items: flex-start; 
    font-size: 1rem; 
    color: var(--color-text-secondary);
    margin-bottom: var(--space-s); /* Adjusted to var, ensure this is defined well, or use e.g., 0.75rem */
    line-height: 1.6; 
}

.guidelines-section li:last-child {
    margin-bottom: 0;
}

.guideline-icon {
    width: 20px; 
    height: 20px;
    margin-right: 1.5rem; /* EXAGGERATED MARGIN-RIGHT for icon-text spacing */
    flex-shrink: 0;
    margin-top: 0.15em; 
}

.guideline-icon.icon-do {
    fill: var(--color-success, #22c55e); /* Green fallback */
}

.guideline-icon.icon-dont {
    fill: var(--color-destructive, #ef4444); /* Red fallback */
}

/* Ensure header actions alignment is consistent for all steps */
.generation-step .section-header-block .header-actions {
    margin-left: auto; /* Pushes buttons to the right */
    align-self: flex-end; /* Aligns with bottom of text block if text wraps */
}

/* Minor adjustment for buttons if they are in section header */
.btn-header-action {
    white-space: nowrap;
}

/* Testimonials Section */
.testimonials-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    align-items: stretch;
}

.testimonial-card {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    padding: 1.75rem;
    border-radius: 1rem;
    width: 100%;
    max-width: 420px;
    text-align: left;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03), 0 2px 4px -1px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    justify-self: center;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

.testimonial-card.featured {
    border-color: oklch(0.534 0.109 255.01);
    border-width: 2px;
    box-shadow: 0 10px 15px -3px oklch(0.534 0.109 255.01/0.2), 0 4px 6px -2px oklch(0.534 0.109 255.01/0.1);
}

.testimonial-card.featured:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -5px oklch(0.534 0.109 255.01/0.25), 0 10px 15px -6px oklch(0.534 0.109 255.01/0.15);
}

.testimonial-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.stars {
    display: flex;
    gap: 0.125rem;
}

.star {
    color: #fbbf24;
    font-size: 1.125rem;
    line-height: 1;
}

.rating-text {
    font-weight: 600;
    color: var(--color-foreground);
    font-size: 0.875rem;
}

.testimonial-card blockquote {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-foreground);
    margin: 0 0 1.5rem 0;
    font-style: italic;
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid oklch(0.534 0.109 255.01/0.3);
}

.testimonial-card.featured blockquote {
    border-left-color: oklch(0.534 0.109 255.01);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-foreground);
    margin: 0 0 0.125rem 0;
}

.author-info p {
    font-size: 0.75rem;
    color: var(--muted-foreground, oklch(0.556 0 0));
    margin: 0;
}

/* Mobile responsiveness for testimonials */
@media (max-width: 768px) {
    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .testimonials-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        max-width: 750px;
    }
    
    .testimonial-card {
        max-width: 350px;
        padding: 1.5rem;
    }
}

.featured-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: oklch(0.534 0.109 255.01);
    color: var(--color-primary-foreground);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* Survey Styles */
.survey-section {
    margin-bottom: 2rem;
}

.survey-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-foreground);
    margin-bottom: 1.5rem;
    text-align: left;
}

.survey-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.survey-option {
    display: flex;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    border: 2px solid var(--color-border);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: var(--color-background);
    position: relative;
}

.survey-option:hover {
    border-color: oklch(0.534 0.109 255.01);
    background-color: oklch(0.534 0.109 255.01/0.02);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.survey-option input[type="radio"] {
    margin: 0;
    margin-right: 1rem;
    margin-top: 0.125rem;
    width: 18px;
    height: 18px;
    accent-color: oklch(0.534 0.109 255.01);
    flex-shrink: 0;
}

.survey-option input[type="checkbox"] {
    margin: 0;
    margin-right: 1rem;
    margin-top: 0.125rem;
    width: 18px;
    height: 18px;
    accent-color: oklch(0.534 0.109 255.01);
    flex-shrink: 0;
}

.survey-option input[type="radio"]:checked + .option-content {
    color: var(--color-foreground);
}

.survey-option input[type="checkbox"]:checked + .option-content {
    color: var(--color-foreground);
}

.survey-option:has(input[type="radio"]:checked) {
    border-color: oklch(0.534 0.109 255.01);
    background-color: oklch(0.534 0.109 255.01/0.05);
    box-shadow: 0 0 0 3px oklch(0.534 0.109 255.01/0.1);
}

.survey-option:has(input[type="checkbox"]:checked) {
    border-color: oklch(0.534 0.109 255.01);
    background-color: oklch(0.534 0.109 255.01/0.05);
    box-shadow: 0 0 0 3px oklch(0.534 0.109 255.01/0.1);
}

.survey-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.option-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    text-align: left;
}

.option-content strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-foreground);
    line-height: 1.3;
}

.option-content small {
    font-size: 0.875rem;
    color: var(--muted-foreground, oklch(0.556 0 0));
    line-height: 1.4;
}

.selection-counter {
    font-weight: 500;
}

.selection-counter.limit-reached {
    color: oklch(0.7 0.15 30) !important; /* Orange warning color */
    font-weight: 600;
}

/* Mobile responsiveness for survey */
@media (max-width: 768px) {
    .survey-option {
        padding: 0.875rem 1rem;
    }
    
    .option-content strong {
        font-size: 0.9rem;
    }
    
    .option-content small {
        font-size: 0.8rem;
    }
}

/* Results Page Styles */
.results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.results-section {
    background: var(--color-background);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03), 0 2px 4px -1px rgba(0,0,0,0.02);
    border: 1px solid var(--color-border);
}

.results-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Score Overview */
.score-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2.5rem;
}

.score-card {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

.score-card.main-score {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.score-card.potential-score {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.score-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: inherit;
}

.score-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.score-badge.current {
    background: rgba(255,255,255,0.2);
    color: white;
}

.score-badge.potential {
    background: rgba(255,255,255,0.2);
    color: white;
}

.score-display {
    margin-bottom: 1rem;
}

.score-number {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.score-number.potential {
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.score-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

.score-description {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Breakdown Grid */
.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.breakdown-item {
    padding: 1.5rem;
    background: #fafafa;
    border-radius: 0.75rem;
    border: 1px solid #f0f0f0;
}

.breakdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.breakdown-title {
    font-weight: 600;
    color: var(--color-foreground);
    font-size: 1rem;
}

.breakdown-score {
    font-weight: 700;
    color: oklch(0.534 0.109 255.01);
    font-size: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, oklch(0.534 0.109 255.01), oklch(0.6 0.12 260));
    border-radius: 9999px;
    transition: width 0.8s ease-in-out;
}

.breakdown-note {
    font-size: 0.875rem;
    color: var(--muted-foreground, oklch(0.556 0 0));
    line-height: 1.5;
    margin: 0;
    text-align: left; /* Left-align the descriptions */
}

/* AI Analysis */
.analysis-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.analysis-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-foreground);
    margin-bottom: 1rem;
    text-align: left;
}

.analysis-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.analysis-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    padding-left: 2rem;
    text-align: left; /* Left-align bullet point text */
}

.analysis-list li:last-child {
    border-bottom: none;
}

.analysis-list.positive li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
    font-size: 1.1rem;
}

.analysis-list.improvements li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: oklch(0.534 0.109 255.01);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Recommendations Grid */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.recommendation-card {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.recommendation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(0,0,0,0.1);
}

.rec-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.recommendation-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-foreground);
    margin-bottom: 0.5rem;
}

.recommendation-card p {
    font-size: 0.875rem;
    color: var(--muted-foreground, oklch(0.556 0 0));
    line-height: 1.5;
    margin: 0;
}

/* Summary Section */
.summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 1rem;
    padding: 2.5rem;
    margin: -2rem;
    text-align: left; /* Left-align all summary content */
}

.summary-card h2 {
    color: white;
    margin-bottom: 1.5rem;
    text-align: left; /* Left-align summary title */
}

.summary-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 1; /* Increased from 0.95 for better readability */
    color: white; /* Ensure white text for contrast */
    text-align: left; /* Left-align summary text */
    max-width: none; /* Remove any width constraints that might center it */
    margin-left: 0; /* Ensure no left margin */
    margin-right: 0; /* Ensure no right margin */
}

.next-steps h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: left; /* Left-align next steps title */
}

.priority-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.priority-list li {
    padding: 0.75rem 0;
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    padding-left: 2.5rem;
    opacity: 1; /* Increased from 0.95 for better readability */
    color: white; /* Ensure white text for contrast */
    text-align: left; /* Left-align priority list items */
}

.priority-list li::before {
    content: counter(priority-counter);
    counter-increment: priority-counter;
    position: absolute;
    left: 0;
    top: 0.75rem;
    background: rgba(255,255,255,0.3); /* Increased opacity for better visibility */
    color: white;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.priority-list {
    counter-reset: priority-counter;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .results-container {
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .results-section {
        padding: 1.5rem;
    }
    
    .score-overview {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .score-number {
        font-size: 3rem;
    }
    
    .breakdown-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .breakdown-item {
        padding: 1.25rem;
    }
    
    .recommendations-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .summary-card {
        padding: 2rem;
        margin: -1.5rem;
    }
} 

/* Loading Page Styles */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
    text-align: center;
}

.loading-animation {
    position: relative;
    margin-bottom: 3rem;
}

.fashion-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.icon-item {
    font-size: 2.5rem;
    animation: bounce 2s ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.icon-item:hover {
    opacity: 1;
    transform: scale(1.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.progress-circle {
    position: relative;
    display: inline-block;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-progress {
    stroke-dasharray: 339.292; /* 2 * π * 54 */
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 0.5s ease-in-out;
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: oklch(0.534 0.109 255.01);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    max-width: 400px;
    width: 100%;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    background-color: #f8fafc;
    border: 2px solid transparent;
    transition: all 0.3s ease-in-out;
    opacity: 0.5;
}

.step-item.active {
    opacity: 1;
    border-color: oklch(0.534 0.109 255.01);
    background-color: oklch(0.534 0.109 255.01/0.05);
    transform: translateX(5px);
}

.step-item.completed {
    opacity: 0.8;
    background-color: #f0fdf4;
    border-color: #22c55e;
}

.step-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.step-item.active .step-icon {
    animation: pulse 1.5s ease-in-out infinite;
}

.step-item.completed .step-icon {
    background-color: #22c55e;
    color: white;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.step-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-foreground);
    text-align: left;
    flex: 1;
}

.step-item.active .step-text {
    font-weight: 600;
    color: oklch(0.534 0.109 255.01);
}

.loading-tips {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    border: 1px solid #e2e8f0;
}

.loading-tips h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-foreground);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.loading-tips h3::before {
    content: "💡";
    font-size: 1.5rem;
}

.tip-content p {
    font-size: 1rem;
    color: var(--muted-foreground, oklch(0.556 0 0));
    line-height: 1.6;
    margin: 0;
    animation: fadeInOut 4s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Mobile responsiveness for loading page */
@media (max-width: 768px) {
    .loading-container {
        padding: 1rem;
        min-height: 50vh;
    }
    
    .fashion-icons {
        gap: 1rem;
    }
    
    .icon-item {
        font-size: 2rem;
    }
    
    .progress-ring {
        width: 100px;
        height: 100px;
    }
    
    .progress-percentage {
        font-size: 1.25rem;
    }
    
    .loading-steps {
        max-width: 100%;
    }
    
    .step-item {
        padding: 0.875rem 1.25rem;
    }
    
    .step-icon {
        font-size: 1.25rem;
        width: 35px;
        height: 35px;
    }
    
    .step-text {
        font-size: 0.9rem;
    }
    
    .loading-tips {
        padding: 1.5rem;
    }
}

/* Blurred Preview Styles */
.blurred-preview {
    position: relative;
}

.preview-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.blurred-content {
    filter: blur(12px);
    user-select: none;
    pointer-events: none;
    transition: filter 0.3s ease-in-out;
}

.blurred-preview .blurred-content::selection {
    background: transparent;
}

.btn-reveal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.2s ease-in-out;
}

.btn-reveal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.unlock-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.95) 70%, rgba(255,255,255,0) 100%);
    backdrop-filter: blur(10px);
    padding: 2rem;
    z-index: 20;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.unlock-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.unlock-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: 0.5rem;
}

.unlock-content p {
    font-size: 1rem;
    color: var(--muted-foreground, oklch(0.556 0 0));
    margin-bottom: 1.5rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.unlock-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.unlock-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.value-points {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground, oklch(0.556 0 0));
}

.value-points span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Mobile responsiveness for blurred preview */
@media (max-width: 768px) {
    .preview-badge {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .unlock-overlay {
        padding: 1.5rem 1rem;
    }
    
    .unlock-content h3 {
        font-size: 1.25rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .value-points {
        font-size: 0.8rem;
    }
}