html {
    overflow-y: scroll;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Font Size */
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    /* Font Variant */
    font-variant-ligatures: none;
    -webkit-font-variant-ligatures: none;
    /* Smoothing */
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-smoothing: antialiased;
    -webkit-font-smoothing: antialiased;
    text-shadow: rgba(0, 0, 0, .01) 0 0 1px;
    /* Prevent Selection */
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}

/* Allow selection for inputs and text areas */
input, textarea, [contenteditable] {
    -webkit-user-select: auto;
    -khtml-user-select: auto;
    -moz-user-select: auto;
    -o-user-select: auto;
    user-select: auto;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

::selection {
    color: #4E30BD;
    background: #D3F3FF;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #000;
    background: #fff;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

header {
    background-color: #fff;
    padding: 1.5rem 0;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 3rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #000;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.7;
}

.logo-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: #000;
    font-size: 0.9rem;
    font-weight: 700;
    transition: opacity 0.2s;
    letter-spacing: -0.2px;
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: flex-end;
}

.nav-account-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s;
    padding: 0.5rem;
}

.nav-account-link:hover {
    opacity: 0.7;
}

.nav-account-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.header-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.2s ease;
    border: none;
    box-shadow: none;
    cursor: pointer;
    white-space: nowrap;
}

.header-cta-button:hover {
    background-color: #333;
}

.header-cta-button:active {
    background-color: #000;
}

.header-cta-button img {
    height: 20px;
    width: auto;
}

.hero {
    padding: 4rem 0 3rem;
    background-color: transparent;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #000;
    letter-spacing: -2px;
    line-height: 1.1;
}

@media (max-width: 968px) {
    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: -1.5px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
        letter-spacing: -1px;
    }
}

.calculator-card {
    background-color: transparent;
    padding: 0;
    margin: 0;
    color: #000;
}

.calculator-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    color: #000;
    text-align: center;
    letter-spacing: -0.3px;
}

.input-section {
    margin-bottom: 3rem;
}

.input-group {
    margin-bottom: 2rem;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-align: center;
}

.slider-container {
    position: relative;
    margin: 0;
}

.slider-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
    justify-content: center;
    width: 100%;
}

.slider-wrapper .slider {
    width: auto;
    max-width: 450px;
}

#onboarding-section .slider-wrapper .slider {
    max-width: 400px;
}

.slider-wrapper .slider-value {
    margin-left: 0;
}

.slider-label {
    font-size: 0.85rem;
    color: #999;
    min-width: 30px;
    font-weight: 400;
}

.slider {
    flex: 1;
    max-width: 450px;
    min-width: 300px;
    height: 3px;
    border-radius: 2px;
    background: #e5e5e5;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.2s;
    position: relative;
}

#onboarding-section .slider {
    max-width: 400px;
    min-width: 300px;
}

.slider-pulse {
    animation: sliderPulse 2s ease-in-out infinite;
}

@keyframes sliderPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(0, 0, 0, 0);
    }
}

.slider-pulse::-webkit-slider-thumb {
    animation: thumbPulse 2s ease-in-out infinite;
}

.slider-pulse::-moz-range-thumb {
    animation: thumbPulse 2s ease-in-out infinite;
}

@keyframes thumbPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 6px rgba(0,0,0,0.2), 0 0 0 0 rgba(0, 0, 0, 0.4);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 2px 6px rgba(0,0,0,0.2), 0 0 0 6px rgba(0, 0, 0, 0);
    }
}

.slider:hover {
    background: #d5d5d5;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.slider::-webkit-slider-thumb:active {
    transform: scale(0.95);
}

.slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.slider::-moz-range-thumb:active {
    transform: scale(0.95);
}

.slider-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    min-width: 60px;
    text-align: center;
    letter-spacing: -0.5px;
}

#slider-hint {
    transition: opacity 0.3s ease;
    font-style: italic;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    max-width: 600px;
}

/* 3-column stats grid for life ruin display */
.stats-grid[style*="grid-template-columns: repeat(3"] {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem;
    max-width: 100% !important;
}

.stats-grid[style*="grid-template-columns: repeat(3"] .stat-box {
    padding: 1rem;
}

.stats-grid[style*="grid-template-columns: repeat(3"] .stat-number {
    font-size: 2rem;
}

.stats-grid[style*="grid-template-columns: repeat(3"] .stat-label {
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.stat-box {
    background-color: transparent;
    padding: 0;
    text-align: center;
    border: none;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
    line-height: 1;
}

.stat-box.years-box.years-low .stat-number {
    color: #10b981;
}

.stat-box.years-box.years-medium .stat-number {
    color: #f59e0b;
}

.stat-box.years-box.years-high .stat-number {
    color: #dc2626;
}

.stat-box.days-box .stat-number.years-low {
    color: #10b981;
}

.stat-box.days-box .stat-number.years-medium {
    color: #f59e0b;
}

.stat-box.days-box .stat-number.years-high {
    color: #dc2626;
}

.stat-number.years-panic {
    animation: shakePanicYears var(--shake-duration, 0.4s) ease-in-out infinite;
    color: #dc2626 !important;
}

.stat-number.days-panic {
    animation: shakePanicDays var(--shake-duration, 0.4s) ease-in-out infinite;
    color: #dc2626 !important;
}

@keyframes shakePanicYears {
    0%, 100% { transform: translate(0, 0); }
    8% { transform: translate(calc(-1 * var(--shake-x, 2px)), calc(-1 * var(--shake-y, 3px))); }
    16% { transform: translate(var(--shake-x, 2px), calc(-0.5 * var(--shake-y, 3px))); }
    24% { transform: translate(calc(-0.7 * var(--shake-x, 2px)), var(--shake-y, 3px)); }
    32% { transform: translate(calc(0.5 * var(--shake-x, 2px)), calc(-0.8 * var(--shake-y, 3px))); }
    40% { transform: translate(calc(-0.3 * var(--shake-x, 2px)), calc(0.6 * var(--shake-y, 3px))); }
    48% { transform: translate(var(--shake-x, 2px), calc(-1 * var(--shake-y, 3px))); }
    56% { transform: translate(calc(-0.6 * var(--shake-x, 2px)), calc(0.4 * var(--shake-y, 3px))); }
    64% { transform: translate(calc(0.8 * var(--shake-x, 2px)), calc(-0.7 * var(--shake-y, 3px))); }
    72% { transform: translate(calc(-0.4 * var(--shake-x, 2px)), var(--shake-y, 3px)); }
    80% { transform: translate(var(--shake-x, 2px), calc(-0.3 * var(--shake-y, 3px))); }
    88% { transform: translate(calc(-0.9 * var(--shake-x, 2px)), calc(0.5 * var(--shake-y, 3px))); }
    96% { transform: translate(calc(0.3 * var(--shake-x, 2px)), calc(-0.6 * var(--shake-y, 3px))); }
}

@keyframes shakePanicDays {
    0%, 100% { transform: translate(0, 0); }
    7% { transform: translate(var(--shake-x, 2px), calc(-0.7 * var(--shake-y, 3px))); }
    15% { transform: translate(calc(-0.6 * var(--shake-x, 2px)), var(--shake-y, 3px)); }
    23% { transform: translate(calc(0.8 * var(--shake-x, 2px)), calc(-0.4 * var(--shake-y, 3px))); }
    31% { transform: translate(calc(-0.4 * var(--shake-x, 2px)), calc(0.9 * var(--shake-y, 3px))); }
    39% { transform: translate(calc(0.5 * var(--shake-x, 2px)), calc(-1 * var(--shake-y, 3px))); }
    47% { transform: translate(calc(-0.9 * var(--shake-x, 2px)), calc(0.3 * var(--shake-y, 3px))); }
    55% { transform: translate(var(--shake-x, 2px), calc(-0.5 * var(--shake-y, 3px))); }
    63% { transform: translate(calc(-0.3 * var(--shake-x, 2px)), calc(0.7 * var(--shake-y, 3px))); }
    71% { transform: translate(calc(0.7 * var(--shake-x, 2px)), calc(-0.8 * var(--shake-y, 3px))); }
    79% { transform: translate(calc(-0.5 * var(--shake-x, 2px)), calc(0.4 * var(--shake-y, 3px))); }
    87% { transform: translate(calc(0.4 * var(--shake-x, 2px)), calc(-0.6 * var(--shake-y, 3px))); }
    95% { transform: translate(calc(-0.8 * var(--shake-x, 2px)), calc(0.2 * var(--shake-y, 3px))); }
}

.stat-label {
    font-size: 0.85rem;
    color: #999;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lifespan-visualization {
    margin-top: 0;
    padding: 0;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.lifespan-title {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-align: center;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lifespan-grid {
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    gap: 1.5px;
    margin: 0 0 1rem 0;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
}

#onboarding-section .lifespan-grid {
    max-width: 75%;
}

.lifespan-box {
    aspect-ratio: 1;
    background-color: #f5f5f5;
    border: none;
    border-radius: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: #999;
}


.lifespan-box.lived {
    background-color: #e5e5e5;
    color: #999;
}

.lifespan-box.current-age {
    background-color: #000;
    border-color: #000;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}

.lifespan-box.past-wasted {
    background-color: #999;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 600;
}

.lifespan-box.wasted {
    background-color: #dc2626;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 600;
}

.lifespan-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

.legend-box {
    width: 12px;
    height: 12px;
    border-radius: 0;
    border: none;
}

.legend-box.lived {
    background-color: #e5e5e5;
}

.legend-box.past-wasted {
    background-color: #999;
}

.legend-box.wasted {
    background-color: #dc2626;
}

.legend-box.remaining {
    background-color: #f5f5f5;
}

.cta-header {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    margin-top: 4rem;
    color: #000;
    text-align: center;
    letter-spacing: -0.5px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.2s ease;
    margin-top: 0;
    border: none;
    box-shadow: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #333;
}

.cta-button:active {
    background-color: #000;
}

.cta-button img {
    height: 20px;
    width: auto;
}

.trust-section {
    padding: 4rem 0;
    text-align: center;
    background-color: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.trust-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.trust-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
}

.trust-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.trust-feature h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.trust-feature p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    max-width: 280px;
}

footer {
    background-color: #fff;
    color: #666;
    text-align: center;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

footer p {
    color: #666;
    font-size: 0.875rem;
    margin: 0;
    font-weight: 400;
}

footer a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

footer a:hover {
    color: #000;
    text-decoration: underline;
}

/* Auth Modal Styles */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.auth-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.auth-modal-content {
    position: relative;
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
}

.auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.auth-modal-close:hover {
    color: #000;
}

.auth-modal-content h2 {
    margin-bottom: 0.5rem;
    text-align: center;
    color: #000;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.auth-modal-subtitle {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.auth-modal-content .form-group {
    margin-bottom: 1.25rem;
}

.auth-modal-content .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.auth-modal-content .form-group input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.auth-modal-content .form-group input:focus {
    outline: none;
    border-color: #000;
}

.auth-modal-content .button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.15s ease;
    margin-top: 0.5rem;
}

.auth-modal-content .alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.auth-modal-content .alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-modal-content .alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Onboarding Signup Form Styles */
.onboarding-signup-form {
    margin: 2rem 0;
}

.onboarding-signup-form .form-group {
    margin-bottom: 1.25rem;
}

.onboarding-signup-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.onboarding-signup-form .form-group input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.onboarding-signup-form .form-group input:focus {
    outline: none;
    border-color: #000;
}

.onboarding-signup-form .alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.onboarding-signup-form .alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.onboarding-signup-form .alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

@media (max-width: 768px) {
    nav {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .nav-right {
        width: 100%;
        flex-direction: column;
        gap: 1rem;
    }

    .header-cta-button {
        width: 100%;
        justify-content: center;
    }

    .auth-modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }
}

    .calculator-card {
        padding: 2.5rem 1.5rem;
    }

    .calculator-result .result-number {
        font-size: 3rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .lifespan-grid {
        grid-template-columns: repeat(10, 1fr);
        gap: 2px;
    }

    .slider-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }

    .slider-label {
        min-width: auto;
    }

    .trust-features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .trust-feature {
        padding: 1rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Onboarding Styles */
#onboarding-section .container {
    max-width: 700px;
    margin: 0 auto;
}

.onboarding-card {
    background-color: #fff;
    border-radius: 20px;
    padding: 2rem 2rem;
    border: none;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Give calculator more breathing room in onboarding */
#onboarding-section .onboarding-card {
    padding: 1.5rem 2rem;
}

#onboarding-section .calculator-card {
    padding: 0;
    margin: 0;
}

#onboarding-section .step-title {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

#onboarding-section .step-description {
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

#onboarding-section .input-section {
    margin-bottom: 1rem;
}

#onboarding-section .lifespan-visualization {
    margin-top: 1.5rem;
}

#onboarding-section .lifespan-title {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

#onboarding-section .lifespan-legend {
    margin-top: 0.75rem;
    gap: 1rem;
    font-size: 0.75rem;
}

#onboarding-section .input-group {
    margin-bottom: 0.75rem;
}

#onboarding-section .slider-value {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

#onboarding-section .input-group label {
    margin-bottom: 0.375rem;
    font-size: 0.85rem;
}

#onboarding-section .stats-grid[style*="grid-template-columns: repeat(3"] {
    gap: 0.75rem !important;
    margin-bottom: 1rem;
}

#onboarding-section .stats-grid[style*="grid-template-columns: repeat(3"] .stat-number {
    font-size: 1.75rem;
}

#onboarding-section .stats-grid {
    margin-bottom: 0.875rem;
}

#onboarding-section .stat-number {
    font-size: 2.25rem;
}

/* Impact page numbers - match calculator font styling */
#years-losing {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    color: #dc2626; /* Red */
}

#years-saving {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    color: #10b981; /* Green */
}

/* Shocking number display styling */
.shocking-number-display {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1.5rem 0;
    padding-bottom: 0.0rem;
}

.time-units-display {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 0.0rem;
    min-height: 1rem;
    padding: 1.5rem 0;
}

.time-unit-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-unit-box.days-box {
    position: absolute;
    left: calc(50% - 10rem);
}

.time-unit-box.months-box {
    position: relative;
}

.time-unit-box.years-box {
    position: absolute;
    right: calc(50% - 10rem);
}

.time-unit-number {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    font-weight: 900;
    color: #000;
    line-height: 1;
    letter-spacing: -2px;
    text-align: center;
    white-space: nowrap;
    width: fit-content;
}

.time-unit-label {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
}

.percentage-display {
    font-size: 1rem;
    color: #dc2626;
    font-weight: 600;
    white-space: nowrap;
    margin-bottom: 0.75rem;
}

#onboarding-section .input-section {
    margin-top: 0;
}

.slider-value-unit {
    font-size: 1rem;
    font-weight: 500;
    color: #999;
}

.gifs-placeholder {
    min-height: 400px;
    padding: 2rem;
    background-color: #f8f8f8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1rem;
}

#onboarding-section {
    display: none;
}

#onboarding-section .lifespan-visualization {
    margin-top: 1.5rem;
}

#onboarding-section .lifespan-title {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

#onboarding-section .lifespan-legend {
    margin-top: 0.75rem;
    gap: 1rem;
    font-size: 0.75rem;
}

.stats-grid-impact {
    margin-bottom: 2rem;
}

.onboarding-signup-form {
    max-width: 400px;
    margin: 2rem auto;
}

.button-full-width {
    width: 100%;
}

.download-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.visualizations-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.visualization-card {
    background-color: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 1.25rem 0.75rem;
    text-align: center;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.visualization-card:hover {
    border-color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.viz-icon {
    font-size: 2rem;
    margin-bottom: 0.4rem;
    line-height: 1;
}

.viz-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: #dc2626;
    line-height: 1;
    margin-bottom: 0.3rem;
    letter-spacing: -1px;
}

/* Step 2 visualizations - make numbers green */
.step-content[data-step="2"] .viz-number {
    color: #10b981;
}

.viz-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.viz-description {
    font-size: 0.7rem;
    color: #666;
    font-weight: 400;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .visualizations-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .visualization-card {
        padding: 1.25rem 0.75rem;
    }
    
    .viz-icon {
        font-size: 1.75rem;
        margin-bottom: 0.3rem;
    }
    
    .viz-number {
        font-size: 1.25rem;
    }
    
    .viz-label {
        font-size: 0.8rem;
    }
    
    .viz-description {
        font-size: 0.65rem;
    }
}

.shocking-number {
    font-size: 4.5rem;
    font-weight: 900;
    color: #000;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -3px;
    transition: color 0.3s ease;
}

.shocking-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.75rem;
}

.percentage-display {
    font-size: 1.1rem;
    color: #dc2626;
    font-weight: 600;
    margin-bottom: 1rem;
}

.unit-toggle {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.unit-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
}

.unit-btn:hover {
    border-color: #999;
    background-color: #f5f5f5;
}

.unit-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.psychological-nudges {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.age-weighted-framing {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.social-comparison {
    text-align: center;
    font-size: 0.85rem;
    color: #999;
}

/* Responsive adjustments for shocking number */
@media (max-width: 768px) {
    .shocking-number {
        font-size: 3.5rem;
    }
    
    .shocking-label {
        font-size: 1rem;
    }
    
    .percentage-display {
        font-size: 0.95rem;
    }
}

#onboarding-section .stat-label {
    font-size: 0.8rem;
}

#onboarding-section .lifespan-visualization {
    margin-top: 0;
    padding: 0;
    margin-bottom: 0.75rem;
}

#onboarding-section .lifespan-title {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
}

#onboarding-section .lifespan-grid {
    gap: 1.5px;
    margin-bottom: 0.5rem;
}

#onboarding-section .lifespan-legend {
    margin-top: 0.375rem;
    gap: 0.875rem;
    font-size: 0.7rem;
}

#onboarding-section .button-group {
    margin-top: 0.75rem;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    position: relative;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #f0f0f0;
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0 auto 0.4rem;
    transition: all 0.3s;
    border: 2px solid #f0f0f0;
}

.step.active .step-circle {
    background-color: #000;
    color: white;
    border-color: #000;
}

.step.completed .step-circle {
    background-color: #000;
    color: white;
    border-color: #000;
}

.step-label {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
}

.step.active .step-label {
    color: #000;
    font-weight: 600;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #000;
    letter-spacing: -1px;
    text-align: center;
}

.step-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.75rem;
    line-height: 1.5;
    text-align: center;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.platform-checkbox {
    display: none;
}

.platform-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 0.75rem;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    background-color: #fff;
    -webkit-user-select: auto;
    -khtml-user-select: auto;
    -moz-user-select: auto;
    -o-user-select: auto;
    user-select: auto;
}

.platform-label:hover {
    border-color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.platform-label:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.platform-checkbox:checked + .platform-label {
    border-color: #000;
    background-color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.platform-checkbox:checked + .platform-label .platform-name {
    color: #fff;
}

.platform-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 0.4rem;
}

.platform-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #000;
}

.time-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.time-option {
    padding: 0.75rem 0.875rem;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    background-color: #fff;
    -webkit-user-select: auto;
    -khtml-user-select: auto;
    -moz-user-select: auto;
    -o-user-select: auto;
    user-select: auto;
}

.time-option:hover {
    border-color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.time-option:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.time-option input[type="radio"] {
    display: none;
}

.time-option:has(input[type="radio"]:checked) {
    border-color: #000;
    background-color: #000;
}

.time-option:has(input[type="radio"]:checked) .time-option-title,
.time-option:has(input[type="radio"]:checked) .time-option-icon {
    color: #fff;
}

.time-option:has(input[type="radio"]:checked) .time-option-description {
    color: rgba(255, 255, 255, 0.8);
}

.time-option-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.time-option-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.time-option-text {
    flex: 1;
}

.time-option-title {
    font-weight: 600;
    margin-bottom: 0.125rem;
    color: #000;
    font-size: 0.95rem;
}

.time-option-description {
    font-size: 0.85rem;
    color: #666;
}

.button-group {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.button {
    flex: 1;
    padding: 1.125rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.button-primary {
    background-color: #000;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.button-primary:hover {
    background-color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.button-primary:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    background-color: #000;
}

.button-secondary {
    background-color: #fff;
    color: #333;
    border: 1px solid #e8e8e8;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.button-secondary:hover {
    background-color: #fafafa;
    border-color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.button-secondary:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    background-color: #f5f5f5;
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#onboarding-section .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

#onboarding-section .lifespan-visualization {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.install-gate {
    text-align: center;
    padding: 1.5rem 0;
    max-width: 500px;
    margin: 0 auto;
}

.install-gate h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #000;
    letter-spacing: -1px;
}

.install-gate p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

.chrome-store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 3rem;
    background-color: #000;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
}

.chrome-store-button .button-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.chrome-store-button:hover {
    background-color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.chrome-store-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    background-color: #000;
}

.after-install-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f8f8;
    border-radius: 12px;
    border-left: 4px solid #000;
}

.after-install-note p {
    color: #333;
    margin: 0;
    font-size: 0.95rem;
}

.lifespan-box.regained {
    background-color: #10b981;
    color: #fff;
}

.legend-box.regained {
    background-color: #10b981;
}

@media (max-width: 768px) {
    .platform-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .button-group {
        flex-direction: column;
    }
}

/* Features Page Styles */
.features-main {
    padding: 2rem 0 4rem;
}

.features-hero {
    text-align: center;
    padding: 0.5rem 0 0.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.features-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000;
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.demo-disclaimer {
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
    margin-top: 1rem;
}

/* Global Controls */
.global-controls-section {
    background-color: #f8f8f8;
    padding: 2rem 0;
    margin-bottom: 3rem;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.global-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.control-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.control-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.control-label span:first-child {
    font-weight: 600;
    font-size: 0.95rem;
    color: #000;
}

.control-description {
    font-size: 0.8rem;
    color: #666;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
    /* Fix for conflict with global .slider class */
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
    height: 100% !important;
    flex: none !important;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .slider {
    background-color: #000;
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(24px);
}

.reset-demo-btn {
    padding: 0.75rem 1.5rem;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.reset-demo-btn:hover {
    background-color: #333;
}

/* Demo Section */
.demo-section {
    margin-bottom: 5rem;
}

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

.demo-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #000;
    letter-spacing: -1.5px;
}

.demo-header p {
    font-size: 1rem;
    color: #666;
}

/* Features Tabs */
.features-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 0 2rem;
    border-bottom: 2px solid #e8e8e8;
    padding-bottom: 0;
}

.tab-btn {
    padding: 0.75rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: #000;
}

.tab-btn.active {
    color: #000;
    border-bottom-color: #000;
}

.demo-section {
    margin-bottom: 5rem;
    display: none;
}

.demo-section.active {
    display: block;
}

.features-split-layout {
    display: grid;
    grid-template-columns: 1100px 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.features-demos-column {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    width: 1100px;
    min-width: 1100px;
}

.features-text-column {
    padding-top: 0;
    margin-top: 0;
}

@media (max-width: 1600px) {
    .features-split-layout {
        grid-template-columns: 1000px 1fr;
        gap: 3rem;
    }

    .features-demos-column {
        width: 1000px;
        min-width: 1000px;
    }
}

@media (max-width: 1200px) {
    .features-split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 1rem;
    }

    .features-demos-column {
        position: static;
        max-height: none;
        overflow-y: visible;
        width: 100%;
        min-width: 0;
    }
}

.demo-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    align-items: start;
}

.demo-controls-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-example-box {
    background-color: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* Demo Controls */
.demo-controls {
    background-color: #f8f8f8;
    padding: 2rem;
    border-radius: 0;
    border: 1px solid #e8e8e8;
    position: sticky;
    top: 100px;
}

.schedule-example-box .schedule-header {
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #e8e8e8;
}

.schedule-example-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.schedule-example-left {
    flex: 1;
}

.schedule-example-box .time-display {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0.25rem;
    gap: 0.5rem;
    min-height: 1.5rem;
}

.schedule-example-box .time-display .schedule-time-display {
    font-size: 0.95rem;
    font-weight: 700;
    color: #000;
}

.schedule-example-box .schedule-time-icon {
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1;
    text-align: center;
    transition: opacity 0.2s ease;
}

.schedule-example-box .schedule-status {
    margin-bottom: 0;
    padding: 0;
    margin-top: 0.75rem;
}

.schedule-example-box .schedule-status span {
    font-size: 0.7rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-example-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.schedule-hard-mode {
    width: 100%;
}

.schedule-hard-mode-subtitle {
    font-size: 0.7rem;
    color: #999;
    margin-top: 0.75rem;
    margin-bottom: 0;
    text-align: right;
    font-weight: 500;
}

.settings-group {
    margin-bottom: 0;
}

.settings-group .group-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #000;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.setting-item.with-toggle {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.setting-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #000;
}

/* Three-State Toggle */
.three-state-toggle {
    display: flex;
    gap: 0.25rem;
    background-color: #fff;
    padding: 0.25rem;
    border-radius: 8px;
    width: 100%;
    border: 1px solid #e8e8e8;
}

.toggle-option {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.25rem;
    background-color: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #666;
}

.toggle-option:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.toggle-option.active {
    background-color: #000;
    color: #fff;
}

/* Specific colors for active states */
.toggle-option.show.active {
    background-color: #00C853; /* Green */
    color: #fff;
    border-color: #00C853;
}

.toggle-option.schedule.active {
    background-color: #000; /* Black */
    color: #fff;
    border-color: #000;
}

.toggle-option.hide.active {
    background-color: #FF1744; /* Red */
    color: #fff;
    border-color: #FF1744;
}

.toggle-icon {
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.toggle-text {
    font-weight: 500;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mock Interfaces */
.mock-interface {
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Hidden state for feature targets */
[data-feature-target].hidden {
    display: none !important;
}

/* Exception: posts-section (Instagram Feed) maintains space when hidden */
.posts-section.hidden {
    display: flex !important;
    opacity: 0;
    pointer-events: none;
}

/* YouTube Mock Interface */
.youtube-interface {
    min-height: 600px;
    height: 600px;
    max-height: 600px;
}

.mock-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background-color: #fff;
    border-bottom: 1px solid #e8e8e8;
}

.mock-logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: #ff0000;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.platform-logo-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.mock-search {
    flex: 1;
    max-width: 400px;
    height: 36px;
    background-color: #f0f0f0;
    border-radius: 20px;
    margin: 0 1rem;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    color: #666;
    font-size: 0.9rem;
}

.mock-profile {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.mock-content-wrapper {
    display: flex;
    height: calc(100% - 57px); /* Subtract header height approx */
    min-height: 400px;
}

.mock-sidebar {
    width: 180px;
    min-width: 180px;
    background-color: #fafafa;
    padding: 1rem 0;
    border-right: 1px solid #e8e8e8;
    flex-shrink: 0;
    height: 100%;
    overflow-y: auto;
}

.sidebar-item {
    padding: 0.75rem 1.5rem;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sidebar-item:hover {
    background-color: #f0f0f0;
}

.sidebar-item.active {
    background-color: #e8e8e8;
    font-weight: 500;
}

.sidebar-item.hidden {
    display: none;
}

.mock-main-content {
    flex: 1;
    padding: 1rem;
    overflow-y: hidden;
}

.shorts-section {
    margin-bottom: 1.5rem;
    transition: opacity 0.3s ease;
}

.shorts-section.hidden {
    display: none;
}

.shorts-section h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #000;
}

.shorts-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.short-item {
    min-width: 80px;
    height: 130px;
    background-color: #e0e0e0;
    border-radius: 8px;
    flex-shrink: 0;
    overflow: hidden;
}

.short-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.trending-section {
    margin-bottom: 1.5rem;
    transition: opacity 0.3s ease;
}

.trending-section.hidden {
    display: none;
}

.trending-section h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #000;
}

.trending-content {
    transition: opacity 0.3s ease;
}

.trending-item {
    height: 60px;
    background-color: #f0f0f0;
    border-radius: 4px;
}

.video-grid-container h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #000;
}

.video-grid-container {
    margin-bottom: 1.5rem;
    transition: opacity 0.3s ease;
}

.video-grid-container.hidden {
    display: none;
}

.video-grid {
    display: flex;
    gap: 1rem;
    overflow-x: hidden; /* Hides scrollbar but allows content to clip */
    padding-bottom: 0.5rem;
}

.video-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    min-width: 0;
    flex: 1 1 0;
    max-width: 140px;
}

.video-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.video-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #000;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-channel {
    font-size: 0.75rem;
    color: #666;
}

/* Instagram Mock Interface */
.instagram-interface {
    min-height: 425px;
    width: 425px;
    max-width: 425px;
    margin: 0 auto;
}

.instagram-interface .mock-header {
    padding: 0.75rem 1rem;
}

.instagram-interface .mock-content-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.instagram-interface .mock-logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: #000;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mock-search-icon,
.mock-message-icon {
    font-size: 1.2rem;
    cursor: pointer;
}

.stories-section {
    min-height: 80px;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e8e8e8;
    width: 100%;
    transition: opacity 0.3s ease;
}

.stories-section.hidden {
    display: none;
}

.stories-content {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
}

.story-item {
    min-width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    padding: 2px;
    flex-shrink: 0;
}

.story-item::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #fff;
}

.posts-section {
    min-height: 400px;
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.posts-content {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease;
}

.posts-content.hidden {
    display: flex !important;
    opacity: 0;
    pointer-events: none;
}

.post-card {
    border-bottom: 1px solid #e8e8e8;
    padding: 0.75rem 0;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
    margin-bottom: 0.5rem;
}

.post-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.post-username {
    font-weight: 600;
    font-size: 0.9rem;
    color: #000;
}

.post-image {
    width: 100%;
    aspect-ratio: 1;
    background-color: #e0e0e0;
    margin-bottom: 0.5rem;
}

.post-actions {
    display: flex;
    gap: 1rem;
    padding: 0 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.post-caption {
    padding: 0 1rem;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}

.suggested-section {
    padding: 1rem;
    border-top: 1px solid #e8e8e8;
    margin-top: 1rem;
}

.suggested-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 1rem;
}

.suggested-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.suggested-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e0e0e0;
}

.suggested-info {
    flex: 1;
}

.suggested-username {
    font-size: 0.85rem;
    font-weight: 500;
    color: #000;
}

.suggested-followers {
    font-size: 0.75rem;
    color: #666;
}

.follow-btn {
    background-color: transparent;
    border: none;
    color: #0095f6;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.mock-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.75rem 0;
    border-top: 1px solid #e8e8e8;
    background-color: #fff;
    min-height: 50px;
}

.nav-item {
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.nav-item.active {
    opacity: 1;
}

.nav-item:hover {
    opacity: 1;
}

.nav-item.hidden {
    display: none;
}

/* Responsive Design */
/* Compact List Styles for Demos */
.demo-section .settings-list {
    gap: 0.75rem;
}

.demo-section .setting-item {
    gap: 0.5rem;
    margin-bottom: 0;
}

/* Website Blocker Styles */
.browser-interface {
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 0;
    min-height: 500px;
    height: 500px;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.browser-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e8e8e8;
    gap: 0.75rem;
}

.browser-dots {
    display: flex;
    gap: 0.4rem;
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
}

.browser-dots span:nth-child(1) {
    background-color: #ff5f57;
}

.browser-dots span:nth-child(2) {
    background-color: #ffbd2e;
}

.browser-dots span:nth-child(3) {
    background-color: #28ca42;
}

.browser-address-bar {
    flex: 1;
    padding: 0.5rem 1rem;
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #333;
}

.browser-content {
    flex: 1;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.site-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.site-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #000;
}

.site-placeholder-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    flex: 1;
}

.placeholder-box {
    height: 100%;
    background-color: #f0f0f0;
    border-radius: 4px;
    min-height: 150px;
}

.blocked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.blocked-overlay.active {
    display: flex;
}

.blocked-message {
    text-align: center;
    max-width: 600px;
    padding: 2.5rem;
}

.blocked-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.blocked-message h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #000000;
    line-height: 1.6;
}

.blocked-message .blocked-site-name {
    font-weight: 800;
    color: #000000;
}

.blocked-message p {
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.6;
    font-weight: 600;
    margin-top: 1.5rem;
}

.custom-site-input {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    flex-wrap: wrap;
}

.custom-site-input .three-state-toggle {
    flex: 1;
    min-width: 200px;
}

.custom-site-input input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 0.9rem;
}

.setting-item.with-custom-input {
    flex-direction: column;
    align-items: stretch;
}

.setting-item.with-custom-input .setting-label {
    margin-bottom: 0.5rem;
}

.visit-btn {
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.visit-btn:hover {
    background: #f0f0f0;
    color: #000;
    border-color: #ccc;
}

.site-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin-right: 0.5rem;
}

.site-header {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Schedule Overlay */
.schedule-overlay {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 220px;
    width: max-content;
    max-width: calc(100vw - 3rem);
}

.schedule-header {
    margin-bottom: 0.25rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #e8e8e8;
}

.schedule-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    gap: 0.75rem;
    min-height: 1.5rem;
}

.time-display span:first-child {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
}

.time-icon {
    font-size: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    line-height: 1;
    transform-origin: 50% 50%;
    text-align: center;
    transition: opacity 0.2s ease;
}

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

.schedule-status {
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.schedule-status span {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    line-height: 1.4;
}

.hard-mode-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    margin-top: 0.25rem;
    border-top: 1px solid #e8e8e8;
}

.hard-mode-control .control-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #000;
}

.toggle-switch.small {
    width: 56px !important;
    height: 30px !important;
    flex: 0 0 56px !important;
    position: relative;
    display: inline-block;
}

/* Remove borders between stacked variants for cleaner look */
.hard-mode-control:has(.variant-2),
.hard-mode-control:has(.variant-3),
.hard-mode-control:has(.variant-4) {
    border-top: none;
    padding-top: 0;
}

.toggle-switch.small .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e8e8e8;
    transition: all 0.15s ease;
    border-radius: 15px !important;
    border: 2px solid #e8e8e8;
    /* Fix for conflict with global .slider class */
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
    height: 100% !important;
    flex: none !important;
    aspect-ratio: auto !important;
}

.toggle-switch.small input:checked + .slider {
    background-color: #000000;
    border-color: #000000;
}

.toggle-switch.small .slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    top: 50%;
    bottom: auto;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transform: translateY(-50%);
    transition: all 0.15s ease;
}

.toggle-switch.small input:checked + .slider:before {
    transform: translate(26px, -50%);
}

/* Variant 1: Standard Pill (Current) */
.toggle-switch.variant-1 {
    /* Inherits default toggle-switch.small styles */
}

/* Variant 2: Pure CSS Checkbox (Simple) */
.toggle-switch.variant-2 {
    width: 40px;
    height: 24px;
}
.toggle-switch.variant-2 .slider {
    border-radius: 4px;
    border: 2px solid #666;
    background: transparent;
}
.toggle-switch.variant-2 .slider:before {
    border-radius: 2px;
    height: 16px;
    width: 16px;
    left: 2px;
    background: #666;
    box-shadow: none;
}
.toggle-switch.variant-2 input:checked + .slider {
    background: #000;
    border-color: #000;
}
.toggle-switch.variant-2 input:checked + .slider:before {
    background: #fff;
    transform: translate(16px, -50%);
}

/* Variant 3: iOS Style (Green) */
.toggle-switch.variant-3 {
    width: 51px !important;
    height: 31px !important;
    flex: 0 0 51px !important;
}
.toggle-switch.variant-3 .slider {
    background-color: #e9e9ea;
    border: none;
}
.toggle-switch.variant-3 .slider:before {
    width: 27px;
    height: 27px;
    left: 2px;
    background: white;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15), 0 3px 1px rgba(0,0,0,0.06);
}
.toggle-switch.variant-3 input:checked + .slider {
    background-color: #34c759;
    border: none;
}
.toggle-switch.variant-3 input:checked + .slider:before {
    transform: translate(20px, -50%);
}

/* Variant 4: Material / Flat */
.toggle-switch.variant-4 {
    width: 36px !important;
    height: 14px !important;
    margin: 8px 0;
    flex: 0 0 36px !important;
}
.toggle-switch.variant-4 .slider {
    background-color: #9e9e9e;
    border: none;
    border-radius: 7px;
}
.toggle-switch.variant-4 .slider:before {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #f5f5f5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    left: -2px;
}
.toggle-switch.variant-4 input:checked + .slider {
    background-color: #a5d6a7; /* Light green track */
}
.toggle-switch.variant-4 input:checked + .slider:before {
    background-color: #4caf50; /* Green thumb */
    transform: translate(20px, -50%);
}
.three-state-toggle.locked {
    position: relative;
}

.three-state-toggle.locked::before {
    display: none;
}

.three-state-toggle.locked .toggle-option,
.toggle-switch.locked {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .demo-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .demo-controls {
        position: static;
    }

    .mock-interface {
        max-width: 100%;
    }

    .mock-sidebar {
        width: 140px;
        min-width: 140px;
    }

    .schedule-overlay {
        bottom: 1rem;
        right: 1rem;
        padding: 1rem 1.25rem;
        min-width: 260px;
    }
}

/* Features Description (Desktop) */
.features-description {
    padding: 0;
    background-color: transparent;
    margin-top: 0;
}

.features-description-content {
    max-width: none;
    margin: 0;
}

.features-description-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000;
    letter-spacing: -1px;
}

.features-description-content > p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.feature-benefit-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e8e8e8;
}

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

.feature-benefit-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #000;
    letter-spacing: -0.5px;
}

.feature-subtitle {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: -0.5rem;
}

.feature-benefit-section p {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

.feature-benefit-section strong {
    color: #000;
    font-weight: 600;
}

/* Mobile Features Explanation */
.mobile-features-explanation {
    display: none;
}

.mobile-explanation-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0.5rem 0;
}

.mobile-explanation-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #000;
    letter-spacing: -1px;
}

.mobile-explanation-content > p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.mobile-feature-section {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8e8e8;
}

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

.mobile-feature-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #000;
    letter-spacing: -0.5px;
}

.mobile-feature-section p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.mobile-feature-section p:last-child {
    margin-bottom: 0;
}

.mobile-feature-section strong {
    color: #000;
    font-weight: 600;
}

.mobile-cta {
    margin-top: 0;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: #f8f8f8;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    line-height: 1.4;
}

@media (max-width: 768px) {
    /* Show mobile explanation, hide interactive demos */
    .mobile-features-explanation {
        display: block;
    }

    .features-split-layout,
    .features-tabs,
    .demo-section,
    .schedule-overlay,
    .features-description {
        display: none !important;
    }

    .features-hero h1 {
        font-size: 2rem;
    }

    .demo-header h2 {
        font-size: 2rem;
    }

    .global-controls {
        flex-direction: column;
        gap: 1.5rem;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .mock-sidebar {
        width: 140px;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .features-hero h1 {
        font-size: 1.75rem;
    }

    .demo-controls {
        padding: 1.5rem;
    }

    .mock-content-wrapper {
        flex-direction: column;
    }

    .mock-sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
    }

    .sidebar-item {
        white-space: nowrap;
        padding: 0.75rem 1rem;
    }
}

