@font-face {
    font-family: "Google Sans";
    src: url("fonts/google_sans_regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Google Sans";
    src: url("fonts/google_sans_medium.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Google Sans";
    src: url("fonts/google_sans_semibold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Google Sans";
    src: url("fonts/google_sans_bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-kerning: normal;
}

body {
    text-align: left;
    align-content: normal;
    color: #173B3D;
    background: #FCFDFE;
}

#orma-startup-splash {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    /* Fukami gradient: the same ground as the native launch screens and the in-app splash. */
    background: linear-gradient(135deg, #0F2027 0%, #203A43 55%, #2C5364 100%);
    z-index: 2147483647;
}

#orma-startup-splash.is-catalog {
    background: #FCFDFE;
}

/* App start: the mark writes itself once (112px, same size and place as the in-app splash),
   then holds with a soft pulse of the dot until the app takes over. */
#orma-startup-splash:not(.is-catalog) .ecdot-loader {
    width: 112px;
    height: 112px;
    color: #F3F3EF;
}

#orma-startup-splash:not(.is-catalog) .ecdot-loader-bar {
    animation: ecdot-intro-bar 1.7s cubic-bezier(.4, 0, .2, 1) both;
}

#orma-startup-splash:not(.is-catalog) .ecdot-loader-ring {
    animation: ecdot-intro-ring 1.7s cubic-bezier(.4, 0, .2, 1) both;
}

#orma-startup-splash:not(.is-catalog) .ecdot-loader-dot {
    animation: ecdot-intro-dot 1.7s cubic-bezier(.4, 0, .2, 1) both;
}

#orma-startup-splash:not(.is-catalog) .ecdot-loader-halo {
    animation: ecdot-intro-halo 1.6s cubic-bezier(.05, .7, .1, 1) 1.7s infinite both;
}

#orma-startup-splash.is-catalog .ecdot-loader {
    width: 56px;
    height: 56px;
}

@keyframes ecdot-intro-bar {
    0% { stroke-dashoffset: 120; }
    25%, 100% { stroke-dashoffset: 0; }
}

@keyframes ecdot-intro-ring {
    0%, 17% { stroke-dashoffset: 120; }
    70%, 100% { stroke-dashoffset: 0; }
}

@keyframes ecdot-intro-dot {
    0%, 68% { transform: scale(0); }
    76% { transform: scale(1.15); }
    85%, 100% { transform: scale(1); }
}

@keyframes ecdot-intro-halo {
    0% { opacity: .28; transform: scale(1); }
    100% { opacity: 0; transform: scale(2.2); }
}

/* ecdot loader: both halves reach in from the ring, the ring sweeps, the dot lands at the centre,
   then everything clears. Matches EcDotLoader in Compose. */
.ecdot-loader {
    display: block;
    color: #1E3D49;
    overflow: visible;
}

.ecdot-loader-bar,
.ecdot-loader-ring {
    stroke-dasharray: 100 150;
    stroke-dashoffset: 120;
    animation: 2.2s cubic-bezier(.4, 0, .2, 1) infinite;
}

.ecdot-loader-bar { animation-name: ecdot-loader-bar; }
.ecdot-loader-ring { animation-name: ecdot-loader-ring; }

.ecdot-loader-dot,
.ecdot-loader-halo {
    fill: #22B04B; /* ecdot dot: green */
    transform-box: fill-box;
    transform-origin: center;
}

.ecdot-loader-dot {
    transform: scale(0);
    animation: ecdot-loader-dot 2.2s cubic-bezier(.4, 0, .2, 1) infinite;
}

.ecdot-loader-halo {
    opacity: 0;
}

@keyframes ecdot-loader-bar {
    0% { stroke-dashoffset: 120; }
    18%, 72% { stroke-dashoffset: 0; }
    84%, 100% { stroke-dashoffset: -120; }
}

@keyframes ecdot-loader-ring {
    0%, 12% { stroke-dashoffset: 120; }
    50%, 76% { stroke-dashoffset: 0; }
    95%, 100% { stroke-dashoffset: -120; }
}

@keyframes ecdot-loader-dot {
    0%, 48% { transform: scale(0); }
    55% { transform: scale(1.15); }
    60%, 88% { transform: scale(1); }
    97%, 100% { transform: scale(0); }
}

@media (prefers-reduced-motion: reduce) {
    .ecdot-loader-bar,
    .ecdot-loader-ring,
    #orma-startup-splash:not(.is-catalog) .ecdot-loader-bar,
    #orma-startup-splash:not(.is-catalog) .ecdot-loader-ring { animation: none; stroke-dashoffset: 0; }
    .ecdot-loader-dot,
    #orma-startup-splash:not(.is-catalog) .ecdot-loader-dot { animation: none; transform: none; }
    #orma-startup-splash:not(.is-catalog) .ecdot-loader-halo { animation: none; opacity: 0; }
}

.orma-catalog-startup-skeleton {
    display: none;
}

#orma-startup-splash.is-catalog {
    display: grid;
    overflow: hidden;
}

#orma-startup-splash.is-catalog .orma-startup-spinner {
    display: block;
}

#orma-startup-splash.is-catalog .orma-catalog-startup-skeleton {
    box-sizing: border-box;
    display: grid;
    gap: 18px;
    width: min(100%, 1228px);
    height: 100%;
    margin: 0 auto;
    padding: 22px 24px 40px;
    overflow: hidden;
}

.orma-catalog-skeleton-hero,
.orma-catalog-skeleton-discovery,
.orma-catalog-skeleton-products {
    box-sizing: border-box;
    border-radius: 8px;
    background: #F2F6F7;
}

.orma-catalog-skeleton-hero {
    display: flex;
    min-height: 270px;
    padding: 30px 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.orma-catalog-skeleton-brand,
.orma-catalog-skeleton-item {
    display: flex;
    align-items: center;
}

.orma-skeleton-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 10px;
}

.orma-catalog-skeleton-brand {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
}

.orma-catalog-skeleton-discovery,
.orma-catalog-skeleton-products {
    padding: 24px;
}

.orma-catalog-skeleton-discovery {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 761px) {
    .orma-catalog-skeleton-discovery > .orma-skeleton-section-title,
    .orma-catalog-skeleton-discovery > .orma-skeleton-section-copy {
        display: none;
    }
}

.orma-skeleton-block {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: #DDE7E9;
}

.orma-skeleton-block::after {
    position: absolute;
    inset: 0;
    content: "";
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent);
    animation: orma-catalog-shimmer 1.35s ease-in-out infinite;
}

.orma-skeleton-logo {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 50%;
}

.orma-skeleton-eyebrow {
    width: 176px;
    height: 10px;
    margin: 0 auto;
}

.orma-skeleton-title {
    width: min(340px, 65vw);
    height: 34px;
}

.orma-skeleton-hero-copy {
    width: min(156px, 56vw);
    height: 13px;
    margin-top: 12px;
}

.orma-skeleton-hero-copy.short {
    width: min(500px, 70vw);
    height: 14px;
}

.orma-skeleton-action {
    width: 220px;
    height: 48px;
    margin-top: 14px;
    border-radius: 999px;
}

.orma-skeleton-section-title {
    width: 190px;
    height: 24px;
}

.orma-skeleton-section-copy {
    width: min(360px, 72vw);
    height: 14px;
    margin-top: 10px;
}

.orma-skeleton-search {
    width: min(600px, 100%);
    height: 46px;
    margin-top: 0;
    border-radius: 999px;
}

.orma-catalog-skeleton-chips,
.orma-catalog-skeleton-tabs {
    display: flex;
    width: 100%;
    gap: 10px;
    margin-top: 14px;
}

.orma-catalog-skeleton-chips .orma-skeleton-block {
    width: 104px;
    height: 28px;
    border-radius: 2px;
}

.orma-catalog-skeleton-tabs .orma-skeleton-block {
    width: 118px;
    height: 40px;
}

.orma-catalog-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.orma-catalog-skeleton-item {
    min-height: 132px;
    gap: 16px;
    padding: 16px;
    border-radius: 8px;
    background: #F8FAFB;
}

.orma-skeleton-image {
    width: 84px;
    height: 84px;
    flex: 0 0 84px;
    border-radius: 8px;
}

.orma-skeleton-item-title {
    width: 72%;
    height: 20px;
}

.orma-skeleton-item-copy {
    width: 54%;
    height: 14px;
}

.orma-skeleton-price {
    width: 42%;
    height: 18px;
}

@keyframes orma-catalog-shimmer {
    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 760px) {
    #orma-startup-splash.is-catalog .orma-catalog-startup-skeleton {
        gap: 12px;
        padding: 12px 12px 28px;
    }

    .orma-catalog-skeleton-hero {
        min-height: 312px;
        padding: 24px 20px;
    }

    .orma-catalog-skeleton-discovery,
    .orma-catalog-skeleton-products {
        padding: 18px;
    }

    .orma-catalog-skeleton-discovery {
        align-items: stretch;
    }

    .orma-skeleton-logo {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }

    .orma-skeleton-title {
        height: 28px;
    }

    .orma-skeleton-action,
    .orma-skeleton-search {
        width: 100%;
    }

    .orma-skeleton-search {
        height: 48px;
    }

    .orma-catalog-skeleton-chips,
    .orma-catalog-skeleton-tabs {
        overflow: hidden;
    }

    .orma-catalog-skeleton-chips .orma-skeleton-block,
    .orma-catalog-skeleton-tabs .orma-skeleton-block {
        flex: 0 0 auto;
    }

    .orma-catalog-skeleton-grid {
        grid-template-columns: 1fr;
    }

    .orma-catalog-skeleton-item:nth-child(n + 3) {
        display: none;
    }
}

@media (prefers-color-scheme: dark) {
    #orma-startup-splash.is-catalog {
        background: #101619;
    }

    .orma-catalog-skeleton-hero,
    .orma-catalog-skeleton-discovery,
    .orma-catalog-skeleton-products {
        background: #182126;
    }

    .orma-skeleton-block {
        background: #26343A;
    }

    .orma-skeleton-block::after {
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
    }

    .orma-catalog-skeleton-item {
        background: #141C20;
    }
}

@media (prefers-reduced-motion: reduce) {
    .orma-skeleton-block::after {
        animation: none;
    }
}

canvas {
    display: block;
    max-width: 100vw;
    max-height: 100vh;
    background: #FCFDFE;
    font-family: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-kerning: normal;
}

body.orma-desktop-auth-page {
    --auth-bg: #f7f5f0;
    --auth-surface: #fffdfa;
    --auth-ink: #1f2023;
    --auth-muted: #5f6368;
    --auth-border: #dedbd4;
    --auth-accent: #1f2023;
    --auth-accent-hover: #303136;
    --auth-focus: #466c75;
    --auth-success: #2f7653;
    --auth-success-soft: #eaf4ed;
    --auth-error: #b3263f;
    --auth-error-soft: #fcecef;
    box-sizing: border-box;
    display: grid;
    min-width: 0;
    min-height: 100dvh;
    padding: 32px;
    place-items: center;
    overflow: auto;
    background: var(--auth-bg);
    color: var(--auth-ink);
}

.orma-desktop-auth-card {
    box-sizing: border-box;
    width: min(100%, 480px);
    padding: 48px;
    border: 1px solid var(--auth-border);
    border-radius: 32px;
    background: var(--auth-surface);
    box-shadow: 0 18px 56px rgba(31, 32, 35, 0.07);
    text-align: center;
}

.orma-desktop-auth-brand {
    display: inline-flex;
    margin: 0 auto 26px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: var(--auth-accent);
}

.orma-desktop-auth-brand-mark {
    display: block;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    background: currentColor;
    -webkit-mask: url("brand-mark.svg?v=ecdot2") center / contain no-repeat;
    mask: url("brand-mark.svg?v=ecdot2") center / contain no-repeat;
}

.orma-desktop-auth-brand-name {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.orma-desktop-auth-card.is-success .orma-desktop-auth-brand {
    color: var(--auth-success);
}

.orma-desktop-auth-card.is-error .orma-desktop-auth-brand {
    color: var(--auth-error);
}

.orma-desktop-auth-eyebrow {
    margin: 0 0 12px;
    color: var(--auth-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.orma-desktop-auth-card h1 {
    margin: 0;
    color: var(--auth-ink);
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.orma-desktop-auth-copy {
    max-width: 360px;
    margin: 18px auto 0;
    color: var(--auth-muted);
    font-size: 17px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.orma-desktop-auth-primary {
    display: inline-flex;
    box-sizing: border-box;
    width: 100%;
    min-height: 56px;
    margin-top: 30px;
    padding: 0 24px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 999px;
    background: var(--auth-accent);
    color: #ffffff;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.orma-desktop-auth-primary:hover {
    background: var(--auth-accent-hover);
}

.orma-desktop-auth-primary:active {
    transform: translateY(1px);
}

.orma-desktop-auth-primary:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--auth-focus) 42%, transparent);
    outline-offset: 4px;
}

.orma-desktop-auth-card.is-error .orma-desktop-auth-primary {
    background: var(--auth-error);
}

.orma-desktop-auth-google-mark {
    width: 22px;
    height: 22px;
    padding: 5px;
    border-radius: 50%;
    background: #ffffff;
}

.orma-desktop-auth-progress {
    display: block;
    width: 40px;
    height: 40px;
    margin: 30px auto 2px;
    color: var(--auth-accent);
}

.orma-desktop-auth-progress .ecdot-loader {
    width: 100%;
    height: 100%;
    color: var(--auth-accent);
}

.orma-desktop-auth-security-note {
    margin: 26px 0 0;
    color: var(--auth-muted);
    font-size: 12px;
    line-height: 1.45;
}

.orma-desktop-phone-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    text-align: left;
}

.orma-desktop-phone-input {
    box-sizing: border-box;
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid var(--auth-muted);
    border-radius: 12px;
    background: transparent;
    color: var(--auth-ink);
    font: inherit;
}

.orma-desktop-phone-form .orma-desktop-auth-primary {
    margin-top: 8px;
}

.orma-desktop-phone-secondary {
    min-height: 48px;
    padding: 8px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--auth-ink);
    font: inherit;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.orma-desktop-phone-input:focus-visible,
.orma-desktop-phone-secondary:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--auth-focus) 42%, transparent);
    outline-offset: 3px;
}

.orma-desktop-phone-form :disabled {
    opacity: 0.6;
    cursor: wait;
}

@media (max-width: 560px) {
    body.orma-desktop-auth-page {
        padding: 18px;
    }

    .orma-desktop-auth-card {
        padding: 38px 26px;
        border-radius: 26px;
    }

    .orma-desktop-auth-card h1 {
        font-size: 32px;
    }
}

@media (prefers-color-scheme: dark) {
    body.orma-desktop-auth-page {
        --auth-bg: #101315;
        --auth-surface: #181b1e;
        --auth-ink: #f4f2ed;
        --auth-muted: #b9b8b4;
        --auth-border: #35383b;
        --auth-accent: #f4f2ed;
        --auth-accent-hover: #ffffff;
        --auth-focus: #8db4bd;
        --auth-success: #9bd0ad;
        --auth-success-soft: #1d3728;
        --auth-error: #ffb3bd;
        --auth-error-soft: #48232b;
    }

    .orma-desktop-auth-primary {
        color: #17191b;
    }

    .orma-desktop-auth-card.is-error .orma-desktop-auth-primary {
        background: #ffb3bd;
        color: #341017;
    }
}

@media (prefers-reduced-motion: reduce) {
    .orma-desktop-auth-primary {
        transition: none;
    }

    .orma-desktop-auth-progress {
        animation-duration: 1.8s;
    }
}
