:root {
    --primary-700: #37526a;
    --primary-900: #1f2f3f;
    --accent-500: #d6a145;
    --surface-050: #f7f8fa;
    --line-300: #d8dde4;
    --focus-600: #17436b;
    --content-max: 1020px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Public Sans', Arial, sans-serif;
    color: var(--primary-900);
    background: #fff;
    line-height: 1.65;
}

h1,
h2,
h3 {
    font-family: 'Lora', Georgia, serif;
    margin: 0 0 0.7rem;
    line-height: 1.25;
}

p,
li {
    margin: 0 0 0.9rem;
}

a {
    color: var(--primary-700);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary-700);
    color: #fff;
    padding: 0.7rem 1rem;
    z-index: 99;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.site-header {
    border-bottom: 1px solid var(--line-300);
    background: #fff;
}

.main-nav {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    padding: 0.85rem 1rem;
}

.main-nav a {
    text-decoration: none;
    border: 1px solid var(--line-300);
    border-radius: 10px;
    padding: 0.45rem 0.75rem;
    background: #fff;
    font-weight: 600;
}

.site-main,
.legal-main,
.thanks-main {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 1.2rem 1rem 2.2rem;
}

section {
    border: 1px solid var(--line-300);
    border-radius: 14px;
    padding: 1.2rem;
    margin: 1rem 0;
    background: #fff;
}

.hero.centered {
    text-align: center;
    background: linear-gradient(180deg, #f9fafc 0%, #f3f6f9 100%);
}

.eyebrow {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.84rem;
    color: var(--primary-700);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1rem;
}

.btn {
    border-radius: 999px;
    padding: 0.62rem 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Public Sans', Arial, sans-serif;
}

.btn-solid {
    background: var(--primary-700);
    color: #fff;
    border: 2px solid var(--primary-700);
}

.btn-solid:hover {
    background: #2c4357;
    border-color: #2c4357;
}

.btn-ghost {
    background: #fff;
    color: var(--primary-700);
    border: 2px solid var(--primary-700);
}

.btn-ghost:hover {
    color: #24384a;
    border-color: #24384a;
}

.resources .resource-item {
    border-top: 1px dashed var(--line-300);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.resources .resource-item:first-child {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.checklist ol {
    margin: 0 0 0.9rem 1.2rem;
    padding: 0;
}

.templates article {
    border: 1px solid var(--line-300);
    border-radius: 11px;
    padding: 0.85rem;
    background: var(--surface-050);
    margin-bottom: 0.7rem;
}

.faq-item {
    border: 1px solid var(--line-300);
    border-radius: 10px;
    padding: 0.8rem;
    background: var(--surface-050);
    margin-bottom: 0.6rem;
}

.testimony-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.testimony-grid article {
    border: 1px solid var(--line-300);
    border-radius: 11px;
    padding: 0.85rem;
    background: #f9f7f1;
}

.author {
    font-weight: 700;
}

.contact-form,
.newsletter-form {
    display: grid;
    gap: 0.55rem;
}

input,
textarea {
    width: 100%;
    padding: 0.66rem 0.72rem;
    border: 1px solid var(--line-300);
    border-radius: 10px;
    font: inherit;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.consent-row {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.consent-row input {
    width: auto;
    margin-top: 0.2rem;
}

.notice {
    background: #f8f8f9;
    border-left: 5px solid var(--accent-500);
}

.site-footer {
    max-width: var(--content-max);
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 0.6rem;
}

.footer-brand p {
    margin: 0.2rem 0;
}

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    background: #243241;
    color: #fff;
    border: 1px solid #415266;
    border-radius: 12px;
    padding: 0.9rem;
    z-index: 50;
}

.cookie-banner p {
    margin: 0 0 0.7rem;
}

.hidden {
    display: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--focus-600);
    outline-offset: 2px;
}

@media (max-width: 840px) {
    .testimony-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .hero-actions {
        flex-direction: column;
    }

    .main-nav {
        justify-content: flex-start;
    }
}
