html, body {
    height: 100%;
    background-color: #ffffff;
}

h1:focus {
    outline: none;
}

/* Pre-hydration loading screen */
.app-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
    color: #5f5f5f;
}

.app-loading-text {
    margin-top: 1rem;
    font-size: 0.95rem;
}

/* App bar and footer */
.site-appbar {
    border-bottom: 1px solid #e3e3e3;
}

.site-logo {
    height: 40px;
    width: auto;
    display: block;
}

.footer-logo {
    height: 44px;
    width: auto;
}

.site-footer {
    background: #f6f6f7;
    border-top: 1px solid #e3e3e3;
}

/* Home hero */
.hero {
    padding: 5rem 1rem 4rem;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(20, 20, 115, 0.08), transparent 60%),
        #ffffff;
}

.hero-logo {
    width: min(380px, 70vw);
    height: auto;
    margin-bottom: 2rem;
}

.hero-lede {
    max-width: 640px;
    margin: 0 auto;
}

/* Product hero, colored per product */
.product-hero {
    padding: 4rem 0 3rem;
    overflow: hidden;
}

.product-hero .mud-typography {
    color: inherit;
}

/* MudBlazor's h2/h3 sizes are set for desktop; on a phone they run four or five
   lines and push the product above the fold. */
@media (max-width: 600px) {
    .hero .mud-typography-h3 {
        font-size: 2rem;
    }

    .product-hero {
        padding: 2.5rem 0 2rem;
    }

    .product-hero .mud-typography-h2 {
        font-size: 2.25rem;
    }

    .mud-typography-h4 {
        font-size: 1.75rem;
    }
}

/* Product cards on the home grid */
.product-card {
    display: flex;
    flex-direction: column;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    transform: translateY(-2px);
}

.product-card-shot {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    padding: 1.25rem 1.25rem 0;
}

.product-card-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 6px 6px 0 0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
    display: block;
}

/* Device frames */
.browser-frame {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.browser-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #ececef;
    border-bottom: 1px solid #d9d9de;
}

.browser-chrome span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c9c9cf;
}

.browser-url {
    flex: 1;
    margin-left: 8px;
    padding: 3px 10px;
    border-radius: 6px;
    background: #ffffff;
    color: #6b6b70;
    font-size: 12px;
    font-family: "Inter", sans-serif;
}

.browser-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.phone-frame {
    position: relative;
    width: 260px;
    max-width: 100%;
    aspect-ratio: 390 / 844;
    border-radius: 36px;
    padding: 10px;
    background: #17171a;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28), inset 0 0 0 2px #3a3a40;
    margin: 0 auto;
}

.phone-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 27px;
    background: #ffffff;
}

/* Store badges */
.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 12px;
    border-radius: 8px;
    background: #17171a;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #4a4a52;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.1;
}

.store-badge:hover {
    background: #26262b;
}

.store-badge .mud-icon-root {
    font-size: 28px;
}

.store-badge span {
    display: flex;
    flex-direction: column;
}

.store-badge small {
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.85;
}

/* Legal pages */
.legal h2 {
    margin-top: 2rem;
}

.legal p, .legal li {
    line-height: 1.7;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
