/* Landing Page Styles (Default) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --color-bg: #fcfcfc;
    --color-text: #111111;
    --color-text-secondary: #666666;
    --color-accent: #2563eb;
    /* Royal Blue */
    --color-accent-hover: #1d4ed8;
    --color-glass-bg: #ffffff;
    --color-glass-border: #f3f4f6;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    --radius-lg: 24px;
    --radius-md: 16px;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Utilities */
/* Utilities */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* New Grid Layout System */
.layout-wrapper {
    display: grid;
    /* Column 1 & 3: Flexible "gutters" that grow equally
     Column 2: The actual content, which grows but caps at 1440px */
    grid-template-columns: minmax(3rem, 1fr) min(1600px, 100% - 6rem) minmax(3rem, 1fr);
}

.layout-wrapper>* {
    /* This makes all direct children stay in the center column */
    grid-column: 2;
}

.full-width-section {
    /* This allows specific sections (like a Hero background) to bleed to the edges */
    grid-column: 1 / -1;
    width: 100%;
}


.glass-card {
    background: var(--color-glass-bg);
    /* Solid white now */
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    background: var(--color-accent);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
}

.btn:hover {
    background: var(--color-accent-hover);
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* Header */
header {
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 2.2rem;
    width: auto;
}

@media (min-width: 1920px) {
    .layout-wrapper {
        grid-template-columns: minmax(3rem, 1fr) min(82vw) minmax(3rem, 1fr);
    }

    .nav-container {
        max-width: 82vw;
    }
}

.nav-cta {
    opacity: 0;
    pointer-events: none;
    transition: opacity 3s ease;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    background: #111111 !important;
    /* Override blue gradient */
    box-shadow: none !important;
    margin-right: 1.5rem;
}

.nav-cta:hover {
    background: #333333 !important;
    transform: scale(1.02);
}

.nav-cta.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Hero Section */
.hero,
.privacy-hero {
    padding: 6rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    background-image: url('images/SliderBackground.webp');
    background-size: 100% 120%;
    background-position: top right;
    background-repeat: no-repeat;
    background-color: transparent;
    /* Or fallback color if needed */
}

/* Privacy page specific overrides */
.privacy-hero {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background-image: none;
}

/* Ensure ::before/::after overlay if needed, or remove existing gradients if they conflict.
   User said "behind all current content".
   If existing pseudo-elements are backgrounds, they might overlay the image.
   Let's check existing pseudos.
   Existing .hero::before/after are subtle gradients.
   Let's set z-index of hero content to be above.
*/

.hero>* {
    position: relative;
    z-index: 2;
}

/* Abstract background blobs */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
}

.hero::before {
    top: -50px;
    left: -50px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #f3f4f6, transparent);
    /* Very subtle gray */
}

.hero::after {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #f9fafb, transparent);
}

.hero-headline {
    font-size: clamp(3.18rem, 5.04vw, 4.8rem);
    /* Increased by another 10% */
    font-weight: 700;
    /* Bolder */
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--color-text);
    /* Solid black */
}

.pill-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-subheadline {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    max-width: 840px;
    margin: 0 auto 3rem;
    font-weight: 400;
}

.text-primary-bold {
    color: var(--color-text);
    font-weight: 600;
    /* or 700 if you want it bolder */
}

.strikethrough {
    text-decoration: line-through;
    text-decoration-color: black;
}



/* Better Email Form Design */
.email-signup {
    display: flex;
    justify-content: space-between;
    max-width: 640px;
    padding: 0.35rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 100px;
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    align-items: center;
    position: relative;
}

.email-input {
    flex: 1;
    padding: 0.75rem 0.5rem 0.75rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
    background: transparent;
    min-width: 0;
}



/* Update Button in Email Form context */
.email-signup .btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    white-space: nowrap;
    border-radius: 100px;
    margin-left: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-social-proof {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    max-width: 580px;
    margin: -1rem auto 2rem;
    text-align: center;
    padding-left: 1.5rem;
    /* Aligns with input text */
    font-weight: 400;
}

.hero-visual {
    margin-top: 4rem;
    position: relative;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    max-height: 82vh;
    max-width: 95%;
    /* Full width of container */
    height: auto;
    border-radius: clamp(16px, 4vw, 64px);
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.15);
    border: clamp(8px, 1.5vw, 30px) solid rgb(0, 0, 0);
    /* Scroll Animation Initial State */
    opacity: 1;
    /* Visible by default */
    transform: perspective(1000px) rotateX(10deg) scale(0.95);
    transform-origin: center top;
    transition: transform 0.1s ease-out;
    /* Smooth update */
    will-change: transform;
}

@media (max-width: 768px) {
    .hero-image {
        border-radius: 8vw;
        border: 2.4vw solid rgb(0, 0, 0);
    }

    .hero {
        background-image: url('images/HeroBackgroundMobile.webp');
        background-size: 100% auto;
        background-position: top center;
    }
}


@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-item.large,
    .bento-item.tall {
        grid-column: auto;
        grid-row: auto;
        min-height: 250px;
    }

    /* Workflow Mobile */
    .workflow-grid {
        flex-direction: column;
        /* Force vertical stacking */
    }

    .arrow-divider {
        transform: rotate(90deg);
        /* Point down */
        margin: 0.5rem 0;
        /* Adjust spacing */
    }

    /* Disable Sticky Header on Mobile */
    header {
        position: absolute;
        /* Scrolls away */
    }

    .hero-subheadline {
        max-width: 80vw;
    }
}

@media (max-width: 600px) {
    .hero-subheadline {
        font-size: 1.125rem;
    }

    .desktop-only {
        display: none;
    }

    .layout-wrapper {
        grid-template-columns: 1rem 1fr 1rem;
    }

    .function-card p {
        margin-bottom: 0;
    }

    /* Stack Email Form on small screens */
    .email-signup {
        flex-direction: column;
        border-radius: 24px;
        padding: 1rem;
        gap: 0.3rem;
        max-width: 100%;
        border: none;
        /* optional: remove border for cleaner look, or keep */
        background: transparent;
        box-shadow: none;
    }

    .email-signup .email-input {
        width: 100%;
        background: white;
        padding: 1rem;
        border-radius: 50px;
        text-align: center;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.08);
    }

    .email-signup .btn {
        width: 100%;
        margin-left: 0;
        justify-content: center;
    }
}

.hero-glass-panel {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 32px;
    padding: 1rem;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-glass-panel:hover {
    transform: perspective(1000px) rotateX(0deg);
}

.dashboard-mockup {
    width: 100%;
    height: 500px;
    background: linear-gradient(to bottom right, #ffffff, #f9fafb);
    border-radius: 24px;
    display: grid;
    grid-template-columns: 240px 1fr;
    overflow: hidden;
    position: relative;
}

.mockup-sidebar {
    background: #f3f4f6;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-item {
    height: 32px;
    /* Increased height to look more like menu items */
    background: #e5e7eb;
    border-radius: 8px;
    width: 100%;
}

.sidebar-item:nth-child(2) {
    width: 80%;
}

.sidebar-item:nth-child(3) {
    width: 90%;
}


.mockup-content {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-content: start;
}

.content-card {
    aspect-ratio: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #9ca3af;
    border: 1px solid #f3f4f6;
    position: relative;
    overflow: hidden;
}

.color-swatch {
    width: 100%;
    height: 100%;
    display: block;
}

/* Pain vs Solution Section */
.pain-solution-section {
    padding: 2rem 1rem;
    background: transparent;
    border: none;
    box-shadow: none;
}

.comparison-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem;
    background: white;
    border-radius: 32px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 4rem;
    /* Increased gap */
    align-items: center;
}

.comparison-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

.comp-text {
    flex: 1;
}

.comp-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    display: block;
    margin-bottom: 0.75rem;
}

.comp-title {
    font-size: 2rem;
    /* Larger */
    margin-bottom: 1rem;
    line-height: 1.1;
    font-family: var(--font-sans);
}

.comp-desc {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.comp-visual {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    /* Very light subtle bg */
    border-radius: 50%;
}

.status-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 2px solid white;
    /* Border to pop */
}

.status-badge.error {
    background-color: #ef4444;
}

.status-badge.success {
    background-color: var(--color-accent);
}

.comp-divider-vertical {
    width: 1px;
    height: 180px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1), transparent);
}

/* Workflow Section */
.workflow-section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--color-text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.workflow-grid {
    display: flex;
    /* Changed from grid to flex for better control over centering */
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
    /* Ensures vertical alignment */
    flex-wrap: wrap;
}

.workflow-step {
    padding: 2.5rem;
    text-align: center;
    min-height: 320px;
    width: 300px;
    /* Fixed width for consistency */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.poll-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}



/* === Restored Landing Page Global Styles === */

.poll-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 0.5rem;
}

.poll-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    font-size: 14px;
    opacity: 0.5;
}

.poll-option.selected .poll-check {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    opacity: 1;
    transform: scale(1.1);
}

.poll-option.selected .poll-check::after {
    content: '✓';
    font-weight: bold;
}

.arrow-divider {
    color: #cbd5e1;
    font-size: 2rem;
    flex-shrink: 0;
}

/* Features Bento Grid */
.features-section {
    padding: 6rem 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem;
}

.bento-item {
    padding: 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-item.large {
    grid-column: span 2;
}

.bento-item.tall {
    grid-row: span 2;
}

.bento-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.1;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.bento-item:hover .bento-bg {
    transform: scale(1.05);
}

.bento-content {
    position: relative;
    z-index: 1;
}

.bento-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
}

.bento-desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-cta {
    margin-bottom: 0;
    padding: 0;
    background: #e5e7eb;
    border-radius: 0;
    color: var(--color-text);
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-shadow: none;
    overflow: hidden;
}

.footer-cta-container {
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    max-width: none;
    width: 100%;
}

.footer-cta-image {
    flex: 0 0 45%;
    max-width: 45%;
}

.footer-cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right;
    display: block;
    border-radius: 0;
}

.footer-cta-content {
    flex: 0 0 55%;
    max-width: 55%;
    text-align: left;
    padding: 6rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.footer-cta p {
    color: var(--color-text-secondary);
    margin-bottom: 4rem;
    max-width: 500px;
    margin-left: 0;
    margin-right: auto;
}

.footer-cta .email-signup {
    margin-left: 0;
    margin-right: auto;
    width: 100%;
    max-width: 560px;
    background: white;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-cta .form-social-proof {
    text-align: left;
    margin-left: 1.5rem;
    /* Aligns with input text inside form */
    margin-top: -1rem;
    /* Pull it up closer */
    margin-bottom: 0;
    padding-left: 0;
}

/* Footer CTA - center the form message */
.footer-cta .form-feedback-wrapper {
    max-width: 696px;
    width: 70%;
    margin-left: 0;
    margin-right: auto;
    position: relative;
    text-align: center;
}

.footer-cta .form-feedback-wrapper p {
    margin-bottom: 0;
}

.footer-cta .email-signup {
    margin-bottom: 0;
}

.footer-cta .form-message {
    position: relative;
    left: auto;
    transform: none;
    display: inline-block;
}

@media (max-width: 900px) {
    .footer-cta-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .footer-cta-image,
    .footer-cta-content {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .footer-cta p {
        margin-left: auto;
    }

    .footer-cta-content {
        text-align: center;
        padding-left: 2rem;
        padding-right: 2rem;
        padding-bottom: 2rem;
    }

    .footer-cta .email-signup {
        margin: 0 auto 0;
        width: 100%;
        max-width: 580px;
    }

    .footer-cta .form-feedback-wrapper {
        max-width: 580px;
        margin: 0 auto;
        text-align: center;
    }

    .footer-cta .form-social-proof {
        text-align: center;
        padding-left: 0;
        margin-left: 0;
    }
}


.copyright {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

/* Responsive Overrides */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-item.large,
    .bento-item.tall {
        grid-column: auto;
        grid-row: auto;
        min-height: 250px;
    }

    .workflow-grid {
        flex-direction: column;
    }

    .arrow-divider {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
}

/* Thank You Page Styles */
.thank-you-hero {
    padding: 3rem 0 1rem;
    /* Much reduced padding */
    text-align: center;
    position: relative;
    /* For blobs */
}

.thank-you-hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

/* Text Animation Wrapper */
.anim-wrapper {
    transition: opacity 0.5s ease;
    opacity: 1;
}

.anim-wrapper.fading-out {
    opacity: 0;
}

/* Background blobs for Thank You Hero (matching .hero) */
.thank-you-hero::before,
.thank-you-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
}

.thank-you-hero::before {
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 150px;
    background: radial-gradient(circle, #f3f4f6, transparent);
}

.thank-you-hero::after {
    bottom: -10%;
    right: 10%;
    width: 250px;
    height: 150px;
    background: radial-gradient(circle, #f9fafb, transparent);
    opacity: 0.4;
}

.poll-section {
    padding: 2rem 0 4rem;
    /* Reduced top padding to move text up */
    text-align: center;
}

.poll-section h2 {
    font-size: 3rem;
    /* Much bigger header */
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.poll-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 2rem auto 3rem;
    /* Adjusted margins */
}

.poll-option {
    cursor: pointer;
    text-align: left;
    padding: 2rem;
    border: 2px solid transparent;
    /* Prepare for border change */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.poll-option:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.poll-option.selected {
    border-color: var(--color-accent);
    background: white;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}

.poll-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.poll-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
}

.poll-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.poll-submit-container {
    margin-top: 3rem;
}

.btn-poll-submit {
    opacity: 0.5;
    pointer-events: none;
    transition: all 0.3s ease;
    transform: scale(0.95);
}

.btn-poll-submit.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    background-color: var(--color-accent);
}

/* Contact Section */
.contact-section {
    background: white;
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
}

.contact-textarea {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid #ddd;
    font-family: var(--font-sans);
    font-size: 1rem;
    margin-bottom: 1rem;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-textarea:focus {
    border-color: var(--color-accent);
}

/* === Mission Page Special Scoped Styles === */
/* Use .mission-page class to scope these specific overrides */

.mission-page {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem 3rem;
    overflow: hidden;
}

.mission-page header {
    padding: 2rem 0;
    /* Reset padding for mission page if not sticky */
    position: relative;
    /* Mission page header was static in styles.css */
    background: transparent;
    border: none;
    backdrop-filter: none;
}

.mission-page .logo {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.mission-page main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 80vw;
}

/* Mission only classes that don't need scoping as they are unique names, but grouping here for clarity */
.mission-statement {
    font-size: clamp(3rem, 6vw, 8rem);
    font-weight: 700;
    /* Bolder for modern look */
    line-height: 1;
    letter-spacing: -0.03em;
}

.mission-page footer {
    padding: 2rem 0 0 0;
    width: 100%;
    margin-top: auto;
    border-top: none;
    text-align: left;
}

.email {
    font-size: 1.2rem;
    color: #1a1a1a;
    text-decoration: none;
    position: relative;
    font-weight: 400;
}

.email::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #1a1a1a;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.email:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

@media (max-width: 768px) {
    .mission-page {
        padding: 1.5rem;
    }


    .mission-statement {
        font-size: 3.5rem;
    }
}

/* Problem Section */
.problem-section {
    padding: 6rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-headline {
    font-size: clamp(2.4rem, 3.6vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    color: var(--color-text);
}

@media (max-width: 600px) {
    .section-headline {
        font-size: 2.88rem;
    }
}

.problem-grid {
    display: grid;
    /* Default to 1 column for mobile safety */
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: left;
    width: 100%;
}

/* Tablet */
@media (min-width: 640px) {
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .problem-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.function-card {
    background: hsl(0, 0%, 95%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    /* Visible border */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    /* Equal height */
    display: flex;
    flex-direction: column;
}

.function-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.problem-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 1rem;
    display: inline-block;
}

.function-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.function-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

@media (max-width: 600px) {
    .function-card p {
        margin-bottom: 0;
    }
}

/* Function Card Bento Wide Layout */
.function-card.bento-wide {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 2rem;
    padding: 0;
    overflow: hidden;
    min-height: 400px;
    margin-bottom: 4rem;
}

.function-card.bento-wide.reverse-layout {
    grid-template-columns: 6fr 4fr;
    /* Image (left) gets 6, Text (right) gets 4 */
}

/* Swapping order for reverse layout */
.function-card.bento-wide.reverse-layout .bento-content-side {
    order: 2;
}

.function-card.bento-wide.reverse-layout .bento-image-side {
    order: 1;
}

/* Response 5/5 Grid for <1200px */
@media (max-width: 1200px) {

    .function-card.bento-wide,
    .function-card.bento-wide.reverse-layout {
        grid-template-columns: 1fr 1fr;
    }
}

/* Responsive Reverse Reset */
@media (max-width: 960px) {

    .function-card.bento-wide.reverse-layout,
    .function-card.bento-wide {
        grid-template-columns: 1fr;
    }

    .function-card.bento-wide.reverse-layout .bento-content-side {
        order: 1;
        /* Reset to natural order (content first on mobile usually, or image first?) 
                   Actually, existing mobile styles stack content then image usually or 1 col.
                   Existing media query sets columns to 1fr. 
                   We should let mobile flow naturally. */
    }

    /* Let's wait on complex mobile reset until explicitly asked, or just ensuring it doesn't break. 
       If I set order: 2 on desktop, it persists on mobile unless overwritten. */
}

.bento-content-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    align-items: flex-start;
    /* Prevent full width stretch */
}

.bento-content-side .pill-tag {
    margin-bottom: 2rem;
}

.bento-content-side h3 {
    font-size: clamp(2rem, 2.8vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
    line-height: 1.2;
}

.function-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.bento-image-side {
    position: relative;
    overflow: hidden;
    display: block;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* Ensure image fills if needed, or if padding is desired for 'card in card' look */
}

.bento-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    /* Added rounded edges for images as requested */
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
    .function-card.bento-wide {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .bento-content-side {
        padding: 2rem;
        order: 1;
    }

    .bento-image-side {
        min-height: 250px;
        order: 2;
    }
}

/* Functions Section Container */
.functions-section {
    padding: 6rem 0;
}

.functions-container {
    margin: 0 auto;
    padding: 0 1rem;
}

.functions-header {
    text-align: center;
    margin-bottom: 3rem;
}

.functions-header .pill-tag {
    margin-bottom: 1rem;
}

.function-tag {
    background-color: #e8f6fc;
    color: var(--color-accent);
    font-weight: 600;
}

/* Mission Section */
.mission-section {
    padding: 1rem 1rem 2em;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.mission-section .pill-tag {
    margin-bottom: 1.5rem;
}

.mission-desc {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin: 0 auto;
}

/* Problem 2 Section (Pink) */
.problem-2-section {
    background-color: #FFF0F0;
    padding: 1.5rem 2rem;
    border-radius: 32px;
    margin: 2rem auto;
    max-width: 1200px;
    overflow: hidden;
    /* For card rotation clipping if needed */
}

.problem-2-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

/* Left Content */
.problem-2-content {
    max-width: 500px;
}

.pill-tag-pink {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: white;
    color: #ce2c31;
    /* Darker red/pink */
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(206, 44, 49, 0.1);
}

.problem-2-headline {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #ce2c31;
    /* Dark red */
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.problem-2-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #9f3e41;
    /* Muted red */
    font-weight: 400;
}

/* Right Cards Stack */
.problem-2-cards {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* Tighter stacking */
}

.p2-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    max-width: 500px;
    margin-left: auto;
    /* Align slightly right if in grid */
}

.p2-card:hover {
    transform: translateX(5px);
    z-index: 10;
}

/* Rotation effects to match inspiration */
.p2-card.card-1 {
    transform: rotate(2deg) translateX(20px);
}

.p2-card.card-2 {
    transform: rotate(-1deg);
    z-index: 2;
}

.p2-card.card-3 {
    transform: rotate(1deg) translateX(10px);
    z-index: 3;
}

.p2-card.card-1:hover,
.p2-card.card-2:hover,
.p2-card.card-3:hover {
    transform: rotate(0deg) scale(1.02);
}

.p2-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    display: block;
}

.p2-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111;
}

.p2-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .problem-2-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .problem-2-content {
        margin: 0 auto;
    }

    .p2-card.card-1,
    .p2-card.card-2,
    .p2-card.card-3 {
        transform: none;
        /* Reset rotation on mobile */
    }

    .problem-2-cards {
        align-items: center;
    }

    .p2-card {
        width: 100%;
        max-width: 500px;
        text-align: left;
        margin-left: 0;
    }
}

/* Site Footer */
.site-footer {
    padding: 3rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 0;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    flex-wrap: wrap;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-nav a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--color-text);
}

.footer-nav .separator {
    opacity: 0.3;
}

@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

/* Form States - Success/Error/Loading */
.email-signup {
    position: relative;
}

.email-signup.success .email-input {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.05);
}

.email-signup.error .email-input {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.05);
}

.email-signup .success-icon {
    display: none;
    position: absolute;
    right: 182px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    line-height: 28px;
    text-align: center;
    animation: popIn 0.3s ease;
}

.email-signup.success .success-icon {
    display: block;
}

@keyframes popIn {
    0% {
        transform: translateY(-50%) scale(0);
        opacity: 0;
    }

    50% {
        transform: translateY(-50%) scale(1.2);
    }

    100% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
}

.form-message {
    font-size: 0.85rem;
    min-height: 1.2em;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: white;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-message.success,
.form-message.error {
    opacity: 1;
}

.form-message.success {
    color: #10b981;
}

.form-message.error {
    color: #ef4444;
}

.email-signup button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Hide Turnstile widget (invisible mode) */
.cf-turnstile {
    position: absolute;
    visibility: hidden;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* Form Feedback Wrapper */
.form-feedback-wrapper {
    position: relative;
    text-align: center;
    margin-top: 0.5rem;
}

/* Centered message styles handled in footer-cta section above */

/* Mobile adjustments for email form and success icon */
@media (max-width: 600px) {

    /* Center email form on mobile */
    .email-signup {
        align-items: center;
    }

    /* Hide success icon on mobile */
    .email-signup .success-icon,
    .email-signup.success .success-icon {
        display: none !important;
    }
}

/* Legal Page Classes */
.legal-heading {
    padding-bottom: 1rem;
}

.legal-text {
    padding-bottom: 1rem;
}

.legal-list {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-list li {
    padding-bottom: 0.5rem;
}

.legal-divider {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.legal-link {
    color: var(--color-accent);
    text-decoration: none;
}

.legal-link:hover {
    text-decoration: underline;
}

/* ==========================================
   Language Switcher - Fixed, Subtle, Top-Right
   ========================================== */
.lang-switcher {
    position: fixed;
    top: 14px;
    right: 20px;
    z-index: 9999;
    font-family: var(--font-sans);
    font-size: 11px;
    opacity: 0.4;
    transition: opacity 0.25s ease;
}

.lang-switcher:hover,
.lang-switcher.open {
    opacity: 1;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    padding: 5px 10px;
    color: var(--color-text-secondary);
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    font-family: inherit;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.lang-toggle:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.2);
}

.lang-current {
    letter-spacing: 0.03em;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
    min-width: 120px;
    padding: 6px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.lang-switcher.open .lang-dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.lang-dropdown li {
    margin: 0;
    padding: 0;
}

.lang-dropdown button {
    width: 100%;
    padding: 8px 14px;
    text-align: left;
    background: transparent;
    border: none;
    font-size: 12px;
    font-family: inherit;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.lang-dropdown button:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--color-text);
}

.lang-dropdown button.active {
    color: var(--color-accent);
    font-weight: 500;
}

/* Mobile: Slightly larger touch target */
@media (max-width: 600px) {
    .lang-switcher {
        top: 10px;
        right: 12px;
    }

    .lang-toggle {
        padding: 6px 12px;
        font-size: 12px;
    }

    .lang-dropdown button {
        padding: 10px 14px;
    }
}