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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: var(--font-sans);
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Anchors land below the sticky nav */
section[id] {
    scroll-margin-top: 72px;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* Buttons: Figma Button/primary and Button/ghost */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 17px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease, filter 0.15s ease;
}

.btn-lg {
    padding: 11px 18px;
    font-size: var(--text-base);
    line-height: 20px;
}

.btn-primary {
    background: var(--btn-primary-bg);
    border-color: var(--btn-primary-border);
    color: var(--btn-primary-text);
}

.btn-primary:hover {
    filter: brightness(1.06);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: none;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
}

/* Section scaffold and the shared heading block (eyebrow, title, intro) */
.section-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Small accent text uses --text-link (see CLAUDE.md); --accent-default is for large text, fills and borders. */
.eyebrow {
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 17px;
    color: var(--text-link);
}

.section-title {
    font-size: 2.75rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.3;
    color: var(--text-primary);
}

.section-sub {
    max-width: 620px;
    font-size: 1.125rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .section-sub {
        font-size: 1rem;
    }
}

/* Theme-dependent images: show the one that matches the active theme. */
.only-dark {
    display: none;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .only-light {
        display: none;
    }

    :root:not([data-theme="light"]) .only-dark {
        display: block;
    }
}

:root[data-theme="dark"] .only-light {
    display: none;
}

:root[data-theme="dark"] .only-dark {
    display: block;
}
