:root {
    --color-primary: #3498db;
    --color-primary-dark: #2980b9;
    --color-heading: #2c3e50;
    --color-subheading: #34495e;
    --color-text: #333;
    --color-muted: #555;
    --color-background: #f5f5f5;
    --color-card: #f9f9f9;
    --color-border: #ddd;
    --shadow-soft: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-lifted: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-popup: 0 8px 24px rgba(0, 0, 0, 0.3);
    --radius-base: 8px;
    --radius-large: 12px;
    --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-stack);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
}

body.page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px;
}

body.page--centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    max-width: none;
}

.container {
    background-color: #fff;
    padding: 40px;
    border-radius: var(--radius-base);
    box-shadow: var(--shadow-soft);
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-border);
    flex-wrap: wrap;
    gap: 20px;
}

.app-header--centered {
    justify-content: center;
}

.app-header--compact {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 20px;
}

.app-header-left {
    display: flex;
	align-items: center;
    gap: 20px;
    flex: 1;
}

.app-header-left a {
    line-height: 0;
	text-decoration: underline;
}

.page-header-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.page-header-logo:hover {
    transform: scale(1.05);
}

.app-header h1,
h1 {
    color: var(--color-heading);
    font-size: 2em;
    margin: 0;
}

h2 {
    color: var(--color-subheading);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5em;
}

h3 {
    color: var(--color-muted);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1em;
}

p {
    margin-bottom: 15px;
    text-align: justify;
}

ul {
    margin-bottom: 15px;
    padding-left: 25px;
}

li {
    margin-bottom: 10px;
}

strong {
    color: var(--color-heading);
}

a {
    text-decoration: none;
    color: var(--color-primary);
}

a:hover {
    text-decoration: underline;
}


a:hover {
    text-decoration: underline;
}

.download-button {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-base);
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.download-button::after {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        135deg,
        transparent 30%,
        rgba(255, 255, 255, 0.4) 45%,
        transparent 60%
    );
    opacity: 0.8;
    transform: translate(-50%, -50%);
    animation: shimmer 4s ease-in-out infinite;
}

.download-button > span {
    position: relative;
    z-index: 1;
}

.download-button:hover,
.download-button:focus {
    text-decoration: none;
}

.download-icon {
    display: none;
}

.download-icon img {
    width: 22px;
    height: 22px;
    margin-top: 6px;
    filter: brightness(0) invert(1);
}

.download-text {
    display: inline;
}

.download-button:hover {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

.download-button:active {
    transform: translateY(0);
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-overlay.show {
    display: flex;
}

.popup-content {
    background-color: #fff;
    padding: 40px;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-popup);
    max-width: 400px;
    text-align: center;
    position: relative;
    animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-content h3 {
    color: var(--color-heading);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.popup-content p {
    color: var(--color-muted);
    margin-bottom: 25px;
    text-align: center;
}

.popup-close {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.popup-close:hover {
    background: var(--color-primary-dark);
}

.description {
    font-size: 1.1em;
    color: var(--color-muted);
    text-align: center;
    margin-bottom: 30px;
    padding: 1px 20px;
    background-color: #f9f9f9;
    border-radius: var(--radius-base);
}

.ai-highlight {
    color: var(--color-primary);
    font-weight: 600;
    background-color: #e8f4f8;
    padding: 2px 8px;
    border-radius: 4px;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--color-border);
}

.feature-item {
    background-color: var(--color-card);
    padding: 20px;
    border-radius: var(--radius-large);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lifted);
}

.feature-item.ai-features {
    background: linear-gradient(135deg, var(--color-card) 0%, #e8f4f8 100%);
    animation: aiPulse 3s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.feature-item.ai-features h3 {
    color: #e74c3c;
}

@keyframes aiPulse {
    0%,
    100% {
        border-left-color: var(--color-primary);
        box-shadow: 0 0 8px 2px rgba(52, 152, 219, 0.2);
    }
    50% {
        border-left-color: var(--color-primary-dark);
        box-shadow: 0 0 16px 4px rgba(52, 152, 219, 0.4);
    }
}

.feature-item h3 {
    color: var(--color-heading);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.feature-item ul {
    margin: 0;
    padding-left: 20px;
}

.feature-item li {
    margin-bottom: 8px;
    color: var(--color-muted);
}

.download-cta-section {
    margin: 30px 0;
    padding: 40px 30px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-lifted);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-cta-section::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        135deg,
        transparent 30%,
        transparent 40%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 60%,
        transparent 70%
    );
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        transform: translate(-50%, -50%) translateX(-100%) translateY(-100%);
    }
    100% {
        transform: translate(-50%, -50%) translateX(100%) translateY(100%);
    }
}

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

.download-cta-section h2 {
    color: #fff;
    font-size: 2.2em;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.download-cta-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2em;
    margin: 0 0 35px 0;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.download-cta-button {
    background: #fff;
    color: var(--color-primary);
    border: none;
    padding: 12px 50px;
    height: 72px;
    border-radius: var(--radius-large);
    font-size: 1.3em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
	white-space: nowrap;
}

.download-cta-button:hover,
.download-cta-button:focus {
    text-decoration: none;
}

.download-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.download-cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.download-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-cta-logo {
    width: 48px;
    height: 48px;
    display: block;
}

.download-cta-text {
    display: inline;
}

.celebration-section {
    padding: 20px;
    background: linear-gradient(135deg, var(--color-card) 0%, #e8f4f8 100%);
    border-radius: var(--radius-large);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.celebration-text {
    display: flex;
    flex-direction: column;
}

.celebration-text h2 {
    margin: 0;
    color: var(--color-heading);
    font-size: 1.7em;
}

.celebration-text p {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--color-muted);
    text-align: left;
}

.celebration-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    font-size: 1.1em;
}

.celebration-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1em;
}

.celebration-feature strong {
    color: var(--color-primary);
}

.cake-collage {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cake-collage img {
    position: absolute;
    width: 50%;
    max-width: 300px;
    height: auto;
    border-radius: var(--radius-large);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    object-fit: contain;
    transition: transform 0.8s ease, z-index 0.8s ease, margin-left 0.8s ease;
    opacity: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    touch-action: manipulation;
    pointer-events: auto;
}

.cake-collage img.loaded {
    opacity: 1;
}

.cake-collage img.front {
    z-index: 10;
    transform: rotate(0deg) scale(1.1);
    margin-left: 0;
}

.cake-collage img.back {
    z-index: 1;
    transform: scale(1);
    margin-left: 0;
}

.cake-collage img.back:nth-of-type(1) {
    transform: rotate(-20deg) scale(1);
}

.cake-collage img.back:nth-of-type(2) {
    transform: rotate(-12deg) scale(1);
}

.cake-collage img.back:nth-of-type(3) {
    transform: rotate(-5deg) scale(1);
}

.cake-collage img.back:nth-of-type(4) {
    transform: rotate(5deg) scale(1);
}

.cake-collage img.back:nth-of-type(5) {
    transform: rotate(12deg) scale(1);
}

.cake-collage img.back:nth-of-type(6) {
    transform: rotate(20deg) scale(1);
}

.cake-collage img.back:nth-of-type(7) {
    transform: rotate(-18deg) scale(1);
}

.cake-collage img.back:nth-of-type(8) {
    transform: rotate(-8deg) scale(1);
}

.cake-collage img.back:nth-of-type(9) {
    transform: rotate(3deg) scale(1);
}

.cake-collage img.back:nth-of-type(10) {
    transform: rotate(10deg) scale(1);
}

.cake-collage img.back:nth-of-type(11) {
    transform: rotate(18deg) scale(1);
}

.cake-collage img.back:nth-of-type(12) {
    transform: rotate(24deg) scale(1);
}

.bottom-row {
    background-color: #e8f4f8;
    padding: 20px;
    border-radius: var(--radius-base);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}

.bottom-row h2 {
    margin: 0;
    color: var(--color-heading);
    font-size: 1.3em;
}

.contact-info-links p,
.legal-links p {
    margin: 0;
}

.legal-links p {
    text-align: right;
}

.page--centered .container {
    max-width: 600px;
    width: 100%;
    text-align: center;
    padding: 60px 40px;
}

.error-message {
    font-size: 1.5em;
    color: #e74c3c;
    font-weight: bold;
    margin-top: 30px;
    letter-spacing: 2px;
}

.error-link {
    display: inline-block;
    margin-top: 30px;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.error-link:hover {
    color: var(--color-primary-dark);
}

.disclaimer {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-bottom: 30px;
    font-style: italic;
}

.contact-info {
    background-color: #e8f4f8;
    padding: 15px;
    border-radius: 5px;
    margin-top: 30px;
}

.last-updated {
    color: #666;
    font-size: 0.9em;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.software-item {
    background-color: var(--color-card);
    border-left: 4px solid var(--color-primary);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.software-item a {
    overflow-wrap: anywhere;
}

.software-item p {
    text-align: left;
}

.software-name {
    font-weight: bold;
    color: var(--color-heading);
    font-size: 1.1em;
    margin-bottom: 8px;
}

.software-version {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.license-link {
    text-decoration: none;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: var(--color-heading);
}

tr:hover {
    background-color: #f5f5f5;
}

.cm__link-group a:first-child {
    display: none !important;
}

#cc-main .cm__link-group {
    justify-content: flex-end;
}

@media (max-width: 1024px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body.page {
        padding: 10px;
    }

    .container {
        padding: 20px;
    }

    .app-header {
        gap: 15px;
    }

    .page-header-logo {
        width: 50px;
        height: 50px;
    }

    .app-header h1,
    h1 {
        font-size: 1.5em;
    }

    .download-button {
        padding: 12px 20px;
        font-size: 0.9em;
    }

    .description {
        font-size: 1em;
    }

    h2 {
        font-size: 1.4em;
    }

    .celebration-text h2 {
        font-size: 1.5em;
    }

    .celebration-text p {
        font-size: 1em;
    }

    .celebration-feature,
    .celebration-features {
        font-size: 1em;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .download-cta-section {
        margin: 40px 0;
        padding: 35px 25px;
    }

    .download-cta-section h2 {
        font-size: 1.6em;
    }

    .download-cta-section p {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .download-cta-button {
        padding: 16px 35px;
        font-size: 1.1em;
    }

    .bottom-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .celebration-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cake-collage {
        order: -1;
        height: 300px;
        margin: 20px 0;
    }

    .cake-collage img {
        width: 85%;
        max-width: 200px;
    }

    .page--centered .container {
        padding: 40px 20px;
    }
	
	.legal-links p {
    text-align: left;
	}
}

@media (max-width: 480px) {
    .app-header {
        gap: 12px;
    }

    .app-header h1,
    h1 {
        font-size: 1.3em;
    }

    .page-header-logo {
        width: 40px;
        height: 40px;
    }

    .description {
        font-size: 0.95em;
    }

    h2 {
        font-size: 1.3em;
    }

    .celebration-text h2 {
        font-size: 1.3em;
    }

    .celebration-text p,
    .celebration-feature,
    .celebration-features {
        font-size: 0.95em;
    }

    .feature-item {
        padding: 15px;
    }

    .download-cta-section {
        margin: 30px 0;
        padding: 30px 20px;
    }

    .download-cta-section h2 {
        font-size: 1.4em;
        margin-bottom: 15px;
    }

    .download-cta-section p {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .download-cta-button {
        padding: 14px 28px;
        font-size: 1em;
        width: 100%;
        justify-content: center;
    }

    .page--centered .container {
        padding: 32px 16px;
    }
	
	.popup-content {
        max-width: 300px;	
	}
    .download-button {
        height: 40px;
	}		
}

@media (max-width: 400px) {
    .download-button {
        padding: 12px 18px;
        font-size: 0.9em;
    }
	
	.download-cta-button {
	    font-size: 0.9em;
	    gap: 6px;
	}
}

