@font-face {
    font-family: 'Akkurat Pro';
    src: url('../fonts/akkurat-pro-regular.woff2') format('woff2'),
         url('../fonts/akkurat-pro-regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Akkurat Pro';
    src: url('../fonts/akkurat-pro-bold.woff2') format('woff2'),
         url('../fonts/akkurat-pro-bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-text: #111111;
    --color-muted: #4a4a4a;
    --color-border: #c8c8c8;
    --color-blue: #0057c8;
    --color-blue-hover: #0046a3;
    --color-disabled: #b8b8b8;
    --color-success: #15803d;
    --color-error: #b91c1c;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Akkurat Pro', sans-serif;
    background-color: #ffffff;
    color: var(--color-text);
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-header {
    padding: 2.5rem 5rem 0;
    max-width: 1400px;
    margin: 0 auto 80px auto;
    width: 100%;
    box-sizing: border-box;
}

.site-header img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 80px;
}

.container {
    display: flex;
    flex: 1;
    align-items: flex-start;
    justify-content: flex-start;
    max-width: 1400px;
    margin: 2.5rem auto 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0 5rem 3rem;
    gap: 3rem;
}

.content {
    flex: 1;
    max-width: 520px;
}

.image-container {
    flex: 1.1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 0;
}

.image-container img {
    width: 100%;
    max-width: 620px;
    height: auto;
    object-fit: contain;
}

.badge {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text);
    margin: 0 0 1rem;
}

h1 {
    font-size: 4.25rem;
    font-weight: 400;
    margin: 0 0 1.5rem;
    line-height: 0.95;
    color: var(--color-text);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.intro p {
    font-size: 1rem;
    color: var(--color-muted);
    margin: 0 0 1.25rem;
    line-height: 1.2;
    font-weight: 500;
    max-width: 480px;
}

.intro p:last-child {
    margin-bottom: 2rem;
}

.subscribe-form {
    max-width: 480px;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row > .form-field {
    flex: 1;
}

.form-field label {
    display: block;
    font-size: 0.9375rem;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.form-message {
    margin: 0;
    font-size: 0.95rem;
}

.form-message.success {
    color: var(--color-success);
}

.form-message.error {
    color: var(--color-error);
}

.field-error {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--color-error);
}

.turnstile-wrapper {
    margin-top: 1rem;
}

.privacy-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--color-muted);
    line-height: 1.5;
    cursor: pointer;
}

.privacy-label input[type="checkbox"] {
    margin-top: 0.15rem;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    accent-color: var(--color-blue);
    cursor: pointer;
}

.privacy-label a {
    color: var(--color-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-label a:hover {
    color: var(--color-blue-hover);
}

input[type="email"],
input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.7rem 0.85rem;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    background: #ffffff;
    color: var(--color-text);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="email"]:focus,
input[type="text"]:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 2px rgba(0, 87, 200, 0.12);
}

input[type="email"]:focus-visible,
input[type="text"]:focus-visible,
button:focus-visible,
a:focus-visible,
input[type="checkbox"]:focus-visible {
    outline: 3px solid var(--color-blue);
    outline-offset: 2px;
}

.submit-row {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

button {
    width: 100%;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    border: none;
    background: var(--color-disabled);
    color: #ffffff;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: not-allowed;
    transition: background-color 0.3s ease, color 0.3s ease;
}

button:not(:disabled) {
    background: var(--color-blue);
    cursor: pointer;
}

button:hover:not(:disabled) {
    background: var(--color-blue-hover);
}

.content-link {
    margin: 60px 0 0;
    text-align: center;
}

.content-link a {
    color: var(--color-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.content-link a:hover {
    color: var(--color-blue-hover);
}

@media (max-width: 1024px) {
    .site-header {
        padding: 2rem 3rem 0;
    }

    .container {
        padding: 0 3rem 2.5rem;
        margin-top: 2rem;
    }

    h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    body {
        min-height: 0;
    }

    .site-header {
        width: 100%;
        padding: 1.5rem 20px 0;
        margin-bottom: 80px;
        text-align: center;
    }

    .site-header img {
        max-height: 80px;
        margin: 0 auto;
    }

    .container {
        flex: 0 0 auto;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        margin-top: 0;
        padding: 0 20px 2rem;
        gap: 0;
    }

    .content {
        flex: 0 0 auto;
        max-width: none;
        width: 100%;
    }

    .image-container {
        flex: 0 0 auto;
        width: 100%;
        order: -1;
        margin: 0;
        padding: 0;
        align-items: center;
    }

    .image-container img {
        display: block;
        max-width: 320px;
        margin: 0 auto;
    }

    h1 {
        font-size: 2.75rem;
    }

    .intro p {
        max-width: none;
    }

    .subscribe-form {
        width: 100%;
        max-width: none;
    }

    .form-row {
        flex-direction: column;
    }

    .privacy-label {
        text-align: left;
    }

    .turnstile-wrapper {
        display: flex;
        justify-content: center;
    }
}
