/*
 * Shared visual primitives reused across multiple pages.
 * Page-specific stylesheets apply these via a second class (e.g.
 * `class="btn-accent home-bulb-card__cta"`) and only declare the
 * properties that differ for that instance (size, radius, spacing).
 * See AGENTS.md "Frontend styles" for the convention.
 */

/* Buttons */

.btn-accent {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--color-accent);
    color: var(--color-on-accent);
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color .15s ease;
}

.btn-accent:hover,
.btn-accent:focus-visible {
    background: var(--color-accent-hover);
    color: var(--color-on-accent);
}

/* Surfaces */

.surface-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-sizing: border-box;
}

/* Pills & chips */

.pill {
    display: flex;
    align-items: center;
    border-radius: 999px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-sizing: border-box;
}

.pill--stat {
    gap: 8px;
    padding: 9px 16px;
    white-space: nowrap;
}

.pill-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    color: var(--color-text-strong);
}

.pill-value--accent {
    color: var(--color-accent);
}

.pill-label {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* Brand mark */

.brand-mark {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -.02em;
    color: var(--color-text-strong);
    text-decoration: none;
}

.brand-mark__logo {
    flex: none;
}

/* Subpage navigation */

.subpage-page {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.subpage-shell {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.subpage-topbar {
    flex: none;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 4px 0;
}

.subpage-back {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-strong);
}

.subpage-topbar__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -.02em;
    color: var(--color-text-strong);
}

/* Progress bars */

.progress-track {
    height: 6px;
    border-radius: 999px;
    background: var(--color-border);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--color-accent);
}

@media (min-width: 1024px) {
    .brand-mark {
        font-size: 21px;
    }

    .subpage-page {
        padding: 32px;
    }

    .subpage-shell {
        max-width: 800px;
        gap: 26px;
    }

    .subpage-topbar {
        gap: 18px;
        padding: 0;
    }

    .subpage-back {
        color: var(--color-text-muted);
        transition: color .15s ease;
    }

    .subpage-back:hover,
    .subpage-back:focus-visible {
        color: var(--color-text-strong);
    }

    .subpage-topbar__title {
        font-size: 28px;
    }

    .progress-track {
        height: 8px;
    }
}
