/* Narratory — minimal overrides on top of Pico CSS */

:root {
    --pico-font-family: system-ui, -apple-system, sans-serif;
}

.hero {
    text-align: center;
    padding: 2rem 0 3rem;
}

/* Pico styles the hgroup subtitle via `hgroup > :not(:first-child):last-child`
   (specificity 0,2,1) and pins font-size:1rem. Match that with :last-child
   (0,2,2) so our size actually wins. */
.hero hgroup p:last-child {
    font-size: 1.4rem;
    margin-top: 1rem;
}

.products {
    margin: 0 auto;
}

.connect {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Two-up product + connect grids from Pico's md breakpoint up; below
   768px Pico's base .grid (single column) takes over, so the page
   collapses to one column like the product landing pages. */
@media (min-width: 768px) {
    .products .grid,
    .connect .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.connect-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
}

.connect-col .socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.product-card {
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--pico-border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.product-card svg {
    display: block;
    margin: 0 auto 0.75rem;
}

.product-card p {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.product-cta {
    display: inline-block;
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pico-muted-border-color);
}

/* Auth pages */

.auth-card {
    max-width: 420px;
    margin: 2rem auto;
}

.auth-switch {
    text-align: center;
    font-size: 0.9rem;
}

.message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--pico-border-radius);
}

.message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.message.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
