/* Public marketing pages. Kept in wwwroot so it loads without Blazor CSS isolation. */

.public-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--rz-base-50, #fbfaf8);
    color: var(--rz-text-color, #201e1b);
}

.public-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem clamp(1rem, 4vw, 2.5rem);
    background: color-mix(in srgb, var(--rz-base-50, #fbfaf8) 92%, white);
    border-bottom: 1px solid var(--rz-base-300, #ece5df);
}

.public-brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.public-logo {
    display: block;
    height: 32px;
    width: auto;
    max-width: min(240px, 55vw);
    object-fit: contain;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.public-nav .rz-button {
    white-space: nowrap;
}

.public-main {
    flex: 1;
}

.public-footer {
    padding: 2rem 1.5rem 2.5rem;
    text-align: center;
    color: var(--rz-text-secondary-color, #7e7974);
}

.public-footer p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
}

.home {
    --home-ink: var(--rz-text-color, #201e1b);
    --home-muted: var(--rz-text-secondary-color, #7e7974);
    --home-max: 68rem;
}

.home-hero,
.home-section,
.home-cta,
.home-gallery,
.home-photo-band {
    width: min(var(--home-max), calc(100% - 2rem));
    margin-inline: auto;
}

.home h1,
.home h2,
.home h3,
.home p,
.home figure {
    margin: 0;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 0.9fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    padding: clamp(2rem, 5vw, 4rem) 0 2.5rem;
}

.home-kicker {
    margin: 0 0 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--home-muted);
}

.home-hero h1,
.home-section h2,
.home-theme h3,
.home-cta h2 {
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--rz-text-title-color, #201e1b);
}

.home-hero h1 {
    font-size: clamp(1.85rem, 4vw, 3rem);
    font-weight: 650;
}

.home-lead,
.home-section-lead,
.home-theme-copy p,
.home-cta p,
.home-steps p {
    color: var(--home-ink);
    line-height: 1.65;
}

.home-lead {
    margin-top: 1rem;
    font-size: 1.05rem;
    max-width: 36rem;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.home-actions .rz-button.rz-light {
    color: var(--home-ink);
    border-color: var(--rz-base-600, #d2ccc6);
    background: #fff;
}

.home-hero-device {
    min-width: 0;
}

.home-photo-band {
    padding: 0.5rem 0 2rem;
}

.home-shot {
    margin: 0;
    min-width: 0;
}

.home-shot img,
.home-photo-band img,
.home-gallery img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 28rem;
    object-fit: cover;
    border-radius: 1.15rem;
    box-shadow: 0 16px 40px rgba(32, 30, 27, 0.12);
}

.home-shot-caption {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.85rem;
}

.home-shot-title {
    font-weight: 650;
    font-size: 1.05rem;
    color: var(--rz-text-title-color, #201e1b);
}

.home-shot-message {
    color: var(--home-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.home-section {
    padding: 2.75rem 0;
}

.home-section h2,
.home-cta h2 {
    font-size: clamp(1.45rem, 2.6vw, 2.05rem);
    font-weight: 650;
}

.home-section-lead {
    margin-top: 0.85rem;
    font-size: 1.05rem;
    max-width: 42rem;
}

.home-theme {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.85fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: center;
    margin-top: 2.75rem;
}

.home-theme-reverse {
    grid-template-columns: minmax(15rem, 0.85fr) minmax(0, 1fr);
}

.home-theme-reverse .home-theme-copy {
    order: 2;
}

.home-theme h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0.15rem 0 0.65rem;
}

.home-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
    padding: 0.5rem 0 2rem;
}

.home-gallery .home-shot img {
    max-height: 14rem;
}

.home-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
    margin-top: 1.75rem;
}

.home-steps article {
    background: var(--rz-base-100, #f9f6f3);
    border: 1px solid var(--rz-base-300, #ece5df);
    border-radius: 1rem;
    padding: 1.2rem 1.15rem 1.3rem;
}

.home-steps h3 {
    margin: 0.6rem 0 0.45rem;
    font-size: 1.05rem;
    line-height: 1.3;
}

.home-steps p {
    font-size: 0.95rem;
}

.home-step-icon {
    font-size: 1.85rem;
    color: var(--rz-primary, #cc721f);
}

.home-eink-why .home-section-lead {
    max-width: 46rem;
}

.home-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.15rem;
}

.home-pills span {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--rz-base-200, #f2eae3);
    color: var(--home-ink);
    font-size: 0.85rem;
}

.home-cta {
    text-align: center;
    padding: 1.5rem 0 4.5rem;
}

.home-cta p {
    margin: 0.85rem auto 1.35rem;
    max-width: 32rem;
}

.eink-device {
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
}

.eink-bezel {
    background: linear-gradient(165deg, #2c2c2c 0%, #141414 55%, #0e0e0e 100%);
    border-radius: 1.1rem;
    padding: 0.85rem 0.85rem 1.05rem;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.14) inset,
        0 16px 36px rgba(32, 30, 27, 0.24);
}

.eink-screen {
    aspect-ratio: 800 / 480;
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.35), transparent 55%),
        #f3efe6;
    color: #1c1916;
    border-radius: 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    padding: 7% 8% 6%;
    box-shadow: inset 0 0 0 1px rgba(80, 70, 55, 0.12);
}

.eink-brand {
    margin: 0;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #6f675e;
}

.eink-title {
    margin: 0;
    font-size: clamp(1.35rem, 3.4vw, 2.1rem);
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.eink-body,
.eink-footer {
    margin: 0;
    max-width: 22rem;
}

.eink-body {
    font-size: clamp(0.82rem, 1.8vw, 1rem);
    line-height: 1.45;
    color: #2a2622;
}

.eink-footer {
    font-size: 0.75rem;
    line-height: 1.4;
    font-style: italic;
    color: #5c564e;
}

@media (max-width: 900px) {
    .home-hero,
    .home-theme,
    .home-theme-reverse,
    .home-gallery,
    .home-steps {
        grid-template-columns: 1fr;
    }

    .home-theme-reverse .home-theme-copy {
        order: 0;
    }

    .home-hero {
        padding-top: 1.5rem;
    }

    .home-gallery img {
        max-height: 16rem;
    }
}
