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

:root {
    color-scheme: light;
    --brand-primary: #5c36c9;
    --background-primary: #ffffff;
    --background-secondary: #f6f3ff;
    --text-primary: #111111;
    --text-secondary: #343434;
    --text-primary-inverted: #ffffff;
    --border: #c9c9c9;
    --focus: #1d4ed8;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --brand-primary: #9f83ff;
        --background-primary: #0f1115;
        --background-secondary: #171a21;
        --text-primary: #f4f5f7;
        --text-secondary: #c8ccd4;
        --text-primary-inverted: #0f1115;
        --border: #2a3040;
        --focus: #7fb0ff;
    }
}

body {
    font-family: "Inter", sans-serif;
    background-color: var(--background-primary);
    color: var(--text-primary);
    line-height: 1.5;
}

main {
    margin: 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Space Grotesk", sans-serif;
    line-height: 1;
}

h1 {
    font-size: clamp(3.5rem, 10vw, 8rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.5rem;
    line-height: 1.2;
}

p {
    font-size: 1.125rem;
    line-height: 1.7;
}

a {
    color: inherit;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--brand-primary);
}

a:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
    border-radius: 4px;
}

code {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.95em;
}

.info,
.lastname-grid,
#how-it-works,
#about {
    padding: 2rem;
}

.info {
    max-width: 64rem;
}

.info h1 {
    margin-bottom: 2rem;
}

.info p {
    max-width: 44rem;
    margin-top: 1rem;
}

.no-margin-top {
    margin-top: 0 !important;
}

.name-cycle {
    background-color: var(--brand-primary);
    color: var(--text-primary-inverted);
    padding: 0 1rem;
    border-radius: .2rem;
    width: 100%;
}

.contact-row a {
    font-weight: 600;
}

.lastname-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 2rem 0;
}

.lastname-container {
    min-width: 0;
}

.lastname-grid h2 {
    margin-bottom: 1.5rem;
}

#how-it-works {
    border-bottom: 1px solid var(--border);
    padding-bottom: 4rem;
}

#how-it-works h2 {
    margin-bottom: 2rem;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.how-it-works {
    min-width: 0;
}

.how-it-works span {
    display: block;
    margin-bottom: 1rem;
    color: var(--brand-primary);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25rem;
    letter-spacing: 0.08em;
}

.how-it-works h3 {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

ul li {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

ul .text-brand-primary {
    margin-top: 0.75rem;
}

.text-brand-primary {
    color: var(--brand-primary);
}

#about {
    background-color: var(--background-secondary);
    padding-bottom: 4rem;
}

#about h2 {
    margin-bottom: 2rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .info,
    .lastname-grid,
    #how-it-works,
    #about {
        padding: 1.25rem;
    }

    .about-card {
        padding: 1.25rem;
    }

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

    .how-it-works-grid {
        grid-template-columns: 1fr;
    }
}
