@font-face {
    font-family: 'Sharp Sans';
    src: url('/fonts/sharp-sans/Sharp Sans.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sharp Sans';
    src: url('/fonts/sharp-sans/Sharp Sans Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sharp Sans';
    src: url('/fonts/sharp-sans/SharpSansBold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --bg: #f9fbf5;
    --bg-alt: rgba(34, 34, 34, 0.02);
    --text: #222;
    --accent: #f15d41;
    --accent-hover: #f16c52;
    --accent-alt1: #f0765e;
    --accent-alt2: #ef7f69;
    --accent-alt3: #f47f67;
}

body {
    font-family: 'Sharp Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a:hover {
    color: var(--accent-hover);
}

header {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid rgba(34, 34, 34, 0.1);
    min-height: 80px; /* Fixed minimum height to prevent layout shift */
    contain: layout style; /* CSS containment for better performance */
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent);
    letter-spacing: 0.05em;
    line-height: 1;
}

.logo:hover {
    color: var(--accent-hover);
}

/* Typewriter effect for homepage logo */
.logo-typewriter.typing::after {
    content: '|';
    font-weight: 400;
    animation: cursor-blink 1s infinite;
}

@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav ul li {
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text);
    font-weight: 500;
    display: inline-block;
    padding: 0.125rem 0;
}

nav a:hover {
    color: var(--accent);
}

nav a.active {
    color: var(--accent);
}

main {
    flex: 1;
    padding: 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    color: #555;
}

p {
    margin-bottom: 1rem;
}

ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

.hero {
    text-align: center;
    padding: 1.5rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.125rem;
    color: #666;
}

.c950-preview {
    max-width: 800px;
    margin: 1.5rem auto 0;
    padding: 2rem 1.5rem;
}

.c950-preview h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    text-align: center;
}

.c950-preview > p {
    font-size: 1rem;
    color: #666;
    text-align: center;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.product-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.product-preview img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}


.c950-rectangle .cta-button {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    text-decoration: none;
    width: 480px;
    text-align: center;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.cta-button:hover {
    background-color: var(--accent-hover);
    color: white;
}

.email-signup {
    max-width: 600px;
    margin: 2rem auto 0;
    text-align: center;
}

.buttondown-embed-placeholder {
    background: rgba(34, 34, 34, 0.05);
    padding: 2rem;
    border-radius: 4px;
    margin: 1rem 0;
    font-family: monospace;
    font-size: 0.875rem;
    color: #666;
}

footer {
    background: rgba(34, 34, 34, 0.02);
    border-top: 1px solid rgba(34, 34, 34, 0.1);
    padding: 3rem 2rem;
    margin-top: auto;
    min-height: 200px; /* Fixed minimum height to prevent layout shift */
    contain: layout style; /* CSS containment for better performance */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: start;
}

.footer-email {
    max-width: 500px;
}

.footer-email p {
    font-size: 0.875rem;
    color: #666;
    margin-top: 1rem;
}

.footer-info {
    text-align: right;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.footer-social a {
    color: #666;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    color: var(--accent);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-info p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.c950-page section {
    margin-bottom: 3rem;
}

.c950-page .product-intro {
    margin-bottom: 3rem;
}

.product-image {
    margin: 3rem 0;
    text-align: center;
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.c950-page ul {
    list-style: none;
    padding-left: 0;
}

.c950-page li {
    padding-left: 1.5rem;
    position: relative;
}

.c950-page li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.c950-page .specs h4:first-child {
    margin-top: 0.5rem;
}

.details-coming {
    text-align: center;
    padding: 2rem 0;
    margin: 2rem 0;
}

.details-coming h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.cta {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
}

button {
    font-family: 'Sharp Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 2rem;
    border: 2px solid var(--accent);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-download {
    background: transparent;
    color: var(--accent);
}

.btn-download:hover {
    background: var(--accent);
    color: white;
}

.btn-buy {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.btn-buy:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.support-content,
.about-content,
.contact-content,
.mailing-list-content,
.press-content {
    max-width: 800px;
}

/* Signup Page Styles */
.signup-hero {
    text-align: center;
    padding: 4rem 0 3rem;
    max-width: 700px;
    margin: 0 auto;
}

.signup-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.signup-hero p {
    font-size: 1.25rem;
    color: #666;
    line-height: 1.6;
}

.signup-main {
    max-width: 600px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.signup-form-container {
    background: rgba(34, 34, 34, 0.02);
    border-radius: 8px;
    padding: 3rem;
    border: 1px solid rgba(34, 34, 34, 0.08);
    width: 580px;
    margin: 0 auto;
}

/* Homepage Dual Section */
.homepage-dual-section {
    margin: 3rem 0;
}

.dual-container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.signup-rectangle,
.c950-rectangle {
    width: 580px;
    background: rgba(34, 34, 34, 0.02);
    border-radius: 8px;
    padding: 3rem;
    border: 1px solid rgba(34, 34, 34, 0.08);
}

.signup-rectangle h2,
.c950-rectangle h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.c950-subheading {
    color: #666;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.c950-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.c950-showcase img {
    width: 480px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.c950-features h3,
.signup-benefits h3 {
    margin-bottom: 1rem;
    margin-top: 0;
    color: var(--text);
}

.c950-features ul,
.signup-benefits ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.c950-features li,
.signup-benefits li {
    margin-bottom: 0.5rem;
    color: #555;
    line-height: 1.6;
}

.circuit-note {
    font-size: 0.875rem;
    color: #777;
    line-height: 1.5;
    border-top: 1px solid rgba(34, 34, 34, 0.1);
    padding-top: 1.5rem;
    margin-bottom: 0;
}

.signup-form {
    margin-bottom: 3rem;
}

.signup-form label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 400;
    color: var(--text);
}

.signup-form input[type="email"] {
    width: 480px;
    padding: 1rem;
    border: 2px solid rgba(34, 34, 34, 0.1);
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.2s ease;
}

.signup-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
}

.signup-form input[type="submit"] {
    width: 480px;
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.signup-form input[type="submit"]:hover {
    background-color: var(--accent-hover);
}

.signup-benefits h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

.signup-benefits ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.signup-benefits li {
    margin-bottom: 0.5rem;
    color: #555;
    line-height: 1.6;
}

.privacy-note {
    font-size: 0.875rem;
    color: #777;
    line-height: 1.5;
    border-top: 1px solid rgba(34, 34, 34, 0.1);
    padding-top: 1.5rem;
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    nav ul {
        gap: 1rem;
        font-size: 0.875rem;
        justify-content: center;
    }
    
    main {
        padding: 1.5rem 1rem;
    }
    
    .hero {
        padding: 1.25rem 0;
    }
    
    .hero h1 {
        font-size: 2.75rem;
    }
    
    .c950-preview {
        margin: 1.25rem auto 0;
        padding: 1.5rem 0;
    }
    
    .c950-preview h2 {
        font-size: 1.875rem;
    }
    
    .product-preview {
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-info {
        text-align: left;
    }
    
    .footer-social {
        justify-content: flex-start;
    }
    
    .signup-hero {
        padding: 3rem 0 2rem;
    }
    
    .signup-hero h1 {
        font-size: 2.5rem;
    }
    
    .signup-form-container {
        padding: 2rem 1.5rem;
        width: 100%;
    }
    
    .signup-main {
        padding: 0 1rem;
    }
    
    .cta {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
    
    /* Homepage Dual Section Mobile */
    .dual-container {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .signup-rectangle,
    .c950-rectangle {
        width: 100%;
        padding: 2rem 1.5rem;
    }
    
    .c950-showcase img {
        width: 100%;
        max-width: 480px;
    }
    
    .signup-form input[type="email"],
    .signup-form input[type="submit"],
    .c950-rectangle .cta-button {
        width: 100%;
    }
}

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

.modal.active {
    display: block;
}

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

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg);
    padding: 3rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-family: 'Sharp Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(34, 34, 34, 0.05);
    color: var(--text);
}

.modal h2 {
    margin-top: 0;
    margin-bottom: 2rem;
}

.pricing {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(34, 34, 34, 0.1);
    border-bottom: 1px solid rgba(34, 34, 34, 0.1);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.license-info {
    color: #666;
    font-size: 0.875rem;
}

.purchase-options {
    margin-bottom: 2rem;
}

.purchase-options p {
    margin-bottom: 1rem;
    font-weight: 500;
}

.payment-btn {
    width: 100%;
    margin-bottom: 0.75rem;
    background: transparent;
    color: var(--text);
    border: 2px solid rgba(34, 34, 34, 0.2);
}

.payment-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.purchase-note {
    font-size: 0.875rem;
    color: #666;
    text-align: center;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 2rem;
    }
    
    .price {
        font-size: 2.5rem;
    }
}

/* Buttondown Form Styles */
.embeddable-buttondown-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.embeddable-buttondown-form label {
    font-family: 'Sharp Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--text);
}

.embeddable-buttondown-form input[type="email"] {
    font-family: 'Sharp Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 0.625rem 1rem;
    border: 2px solid rgba(34, 34, 34, 0.1);
    border-radius: 4px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.2s ease;
}

.embeddable-buttondown-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
}

.embeddable-buttondown-form input[type="submit"] {
    font-family: 'Sharp Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: white;
    border: 2px solid var(--accent);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    align-self: flex-start;
}

.embeddable-buttondown-form input[type="submit"]:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.embeddable-buttondown-form p {
    display: none; /* Hide "Powered by Buttondown" */
}

.email-signup .embeddable-buttondown-form {
    margin: 0 auto;
}

.email-signup .embeddable-buttondown-form input[type="submit"] {
    align-self: center;
}

@media (max-width: 768px) {
    .embeddable-buttondown-form input[type="submit"] {
        width: 100%;
        align-self: stretch;
    }
}

/* Component Loading States - Skeleton Loaders */
@keyframes skeleton-loading {
    0% {
        background-color: rgba(34, 34, 34, 0.05);
    }
    50% {
        background-color: rgba(34, 34, 34, 0.1);
    }
    100% {
        background-color: rgba(34, 34, 34, 0.05);
    }
}

[data-component="header"]:empty {
    min-height: 80px;
    background-color: rgba(34, 34, 34, 0.05);
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-bottom: 1px solid rgba(34, 34, 34, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

[data-component="header"]:empty::after {
    content: '';
    width: 200px;
    height: 24px;
    background-color: rgba(34, 34, 34, 0.1);
    border-radius: 4px;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

[data-component="footer"]:empty {
    min-height: 200px;
    background: rgba(34, 34, 34, 0.02);
    border-top: 1px solid rgba(34, 34, 34, 0.1);
    margin-top: auto;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

[data-component="footer"]:empty::after {
    content: '';
    width: 300px;
    height: 100px;
    background-color: rgba(34, 34, 34, 0.05);
    border-radius: 8px;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* About Page Styles */
.about-dual-section {
    margin: 3rem 0;
}

.about-dual-section h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.about-card {
    width: 580px;
    background: rgba(34, 34, 34, 0.02);
    border-radius: 8px;
    padding: 3rem;
    border: 1px solid rgba(34, 34, 34, 0.08);
}

.about-card h2 {
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.about-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.about-image img {
    width: 480px;
    max-width: 480px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.placeholder-image {
    width: 480px;
    height: 320px;
    background: rgba(34, 34, 34, 0.05);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border: 2px dashed rgba(34, 34, 34, 0.1);
}

.about-card p {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #555;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(34, 34, 34, 0.05);
    border: 1px solid rgba(34, 34, 34, 0.1);
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-links svg {
    width: 20px;
    height: 20px;
}


@media (max-width: 768px) {
    .about-card {
        width: 100%;
        padding: 2rem 1.5rem;
    }
    
    .about-image img,
    .placeholder-image {
        width: 100%;
        max-width: 480px;
    }
    
    .placeholder-image {
        height: 240px;
    }
    
    .social-links {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .about-dual-section h1 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
}