/* ============================================================
   ZMORDA · <zm-radar-rail>
   Self-contained, scoped under .zmr. No box-shadow. Hover = colour only.
   Fonts (Sora / Inter / Space Mono) are loaded site-wide.
   ============================================================ */

zm-radar-rail {
    display: block;
}

zm-radar-rail[variant="panel"] {
    height: 100%;
}

.zmr {
    position: relative;
    overflow: hidden;
    color: #fff;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    background: radial-gradient(120% 100% at 15% 0%, #1a3f86 0%, #0d2c6e 52%, #081d4a 100%);
}

.zmr *, .zmr *::before, .zmr *::after {
    box-sizing: border-box;
}

/* ---- Brand line ---- */
.zmr-brand {
    display: flex;
    align-items: center;
    gap: 9px;
}

.zmr-mark {
    display: inline-flex;
}

.zmr-mark svg {
    display: block;
}

.zmr-name {
    font-family: "Sora", system-ui, sans-serif;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.02em;
    color: #fff;
}

.zmr-tag {
    font-family: "Space Mono", ui-monospace, monospace;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0d2c6e;
    background: #81c4ff;
    padding: 3px 8px;
    border-radius: 999px;
    line-height: 1;
}

/* ---- Copy ---- */
.zmr-eyebrow {
    font-family: "Space Mono", ui-monospace, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #81c4ff;
    margin: 20px 0 0;
}

.zmr-heading {
    font-family: "Sora", system-ui, sans-serif;
    font-weight: 800;
    font-size: 26px;
    line-height: 1.16;
    letter-spacing: -0.02em;
    margin: 10px 0 0;
}

.zmr-sub {
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.74);
    margin: 12px 0 0;
    max-width: 36ch;
}

/* ---- Feature list ---- */
.zmr-features {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.zmr-features li {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92);
}

.zmr-ic {
    flex: 0 0 auto;
    display: inline-flex;
    color: #81c4ff;
}

.zmr-ic svg {
    display: block;
}

.zmr-ftext {
    min-width: 0;
}

/* ---- CTA (orange — CTAs only) ---- */
.zmr-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 48px;
    padding: 0 22px;
    margin-top: 24px;
    align-self: flex-start;
    font-family: "Sora", system-ui, sans-serif;
    font-weight: 700;
    font-size: 14.5px;
    letter-spacing: -0.01em;
    color: #fff;
    background: #ff671f;
    border-radius: 13px;
    text-decoration: none;
    transition: background .18s ease;
}

.zmr-cta:hover, .zmr-cta:focus {
    background: #ec5611;
    color: #fff;
}

.zmr-cta svg {
    flex: 0 0 auto;
}

/* ---- Radar visual ---- */
.zmr-visual {
    position: relative;
}

.zmr-scope {
    display: block;
    width: 100%;
    height: auto;
}

.zmr-sweep {
    transform-origin: 110px 110px;
    animation: zmrSweep 4.4s linear infinite;
}

.zmr-blip {
    transform-box: fill-box;
    transform-origin: center;
    animation: zmrBlip 2.4s ease-in-out infinite;
}

.zmr-blip--2 {
    animation-delay: 0.8s;
}

.zmr-blip--3 {
    animation-delay: 1.6s;
}

@keyframes zmrSweep {
    to {
        transform: rotate(360deg);
    }
}

@keyframes zmrBlip {
    0%, 100% {
        opacity: 0.35;
        transform: scale(0.7);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================================
   VARIANT · CARD  (home / details promo)
   ============================================================ */
.zmr--card {
    border-radius: 20px;
    padding: 34px 38px;
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    align-items: center;
    gap: 26px;
}

.zmr--card .zmr-body {
    min-width: 0;
}

.zmr--card .zmr-visual {
    display: flex;
    justify-content: center;
}

.zmr--card .zmr-scope {
    max-width: 250px;
}

/* ============================================================
   VARIANT · PANEL  (auth side, fills host height)
   ============================================================ */
.zmr--panel {
    border-radius: 0;
    height: 100%;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
}

.zmr--panel .zmr-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.zmr--panel .zmr-features {
    margin-top: auto;
    padding-top: 26px;
}

.zmr--panel .zmr-visual {
    position: absolute;
    right: -58px;
    top: -48px;
    width: 200px;
    opacity: 0.45;
    pointer-events: none;
}

.zmr--panel .zmr-scope {
    width: 260px;
}

/* ============================================================
   VARIANT · BAND  (slim banner / mobile auth top)
   ============================================================ */
.zmr--band {
    border-radius: 0;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.zmr--band .zmr-body {
    flex: 1 1 auto;
    min-width: 0;
}

.zmr--band .zmr-eyebrow,
.zmr--band .zmr-sub,
.zmr--band .zmr-features {
    display: none;
}

.zmr--band .zmr-heading {
    font-size: 15.5px;
    line-height: 1.28;
    margin: 4px 0 0;
}

.zmr--band .zmr-name {
    font-size: 15px;
}

.zmr--band .zmr-visual {
    order: -1;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
}

.zmr--band .zmr-scope {
    width: 54px;
}

.zmr--band .zmr-cta {
    height: 42px;
    margin-top: 0;
    flex: 0 0 auto;
    align-self: center;
    font-size: 13px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
    .zmr--card {
        grid-template-columns: 1fr;
        padding: 26px 22px;
        gap: 18px;
    }

    .zmr--card .zmr-visual {
        order: -1;
        justify-content: flex-start;
    }

    .zmr--card .zmr-scope {
        max-width: 150px;
    }

    .zmr--card .zmr-heading {
        font-size: 22px;
    }

    .zmr--card .zmr-cta {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .zmr--panel {
        padding: 26px 22px;
    }

    .zmr--panel .zmr-heading {
        font-size: 22px;
    }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .zmr-sweep, .zmr-blip {
        animation: none !important;
    }

    .zmr-cta {
        transition: none !important;
    }
}
