/* =========================================================
   HERO CTAs — Icon-First Rail
   ---------------------------------------------------------
   Primary   : wide gradient pill (icon + label)
   Secondary : 52px circular icon buttons
   Layout    : primary full-width on phone, icons in a row
               below; primary + icons inline on tablet+
   ========================================================= */

/* ---------- Container ---------- */
.cs-hero__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    margin-top: 4px;
    position: relative;
    z-index: 3;
}

/* ---------- Icons inherit currentColor ---------- */
.cs-hero .Btn-ico {
    display: block;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: inherit;
    pointer-events: none;
}

/* =========================================================
   PRIMARY — wide pill, icon + label
   ========================================================= */

.cs-hero .Btn-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    min-height: 52px;
    padding: 14px 22px;

    border-radius: 999px;
    border: 0;

    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;

    background: linear-gradient(90deg, #f5b301 0%, #ff8c42 100%);
    color: #120a1f;

    box-shadow:
        0 10px 26px -10px rgba(255, 140, 66, 0.55),
        0 0 0 1px rgba(245, 179, 1, 0.45) inset;

    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;

    transition:
        transform 0.18s ease,
        box-shadow 0.25s ease,
        background-position 0.5s ease;
}

.cs-hero .Btn-hero-cta .Btn-ico {
    width: 20px;
    height: 20px;
}

/* Gradient slide on hover (desktop only) */
@media (hover: hover) and (pointer: fine) {
    .cs-hero .Btn-hero-cta {
        background-size: 200% 100%;
        background-position: 0% 50%;
    }
    .cs-hero .Btn-hero-cta:hover {
        transform: translateY(-1px);
        background-position: 100% 50%;
        box-shadow:
            0 14px 32px -10px rgba(255, 140, 66, 0.7),
            0 0 28px -6px rgba(245, 179, 1, 0.35),
            0 0 0 1px rgba(255, 140, 66, 0.65) inset;
    }
}

.cs-hero .Btn-hero-cta:active {
    transform: scale(0.985);
}

/* =========================================================
   SECONDARY — 52px circular icon buttons
   ========================================================= */

.cs-hero .Btn-hero-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;
    padding: 0;

    border-radius: 50%;
    border: 1.5px solid rgba(245, 179, 1, 0.55);

    background:
        radial-gradient(circle at 30% 30%,
            rgba(157, 77, 255, 0.12),
            transparent 65%),
        rgba(18, 10, 31, 0.6);

    color: #f5b301;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    box-shadow:
        0 4px 18px -8px rgba(157, 77, 255, 0.4),
        0 0 0 0 rgba(245, 179, 1, 0);

    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;

    transition:
        transform 0.18s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.cs-hero .Btn-hero-ico .Btn-ico {
    width: 22px;
    height: 22px;
}

/* Icon row of secondary buttons */
.cs-hero__actions {
    /* Primary is full width; secondaries row below */
    /* We rely on flex-wrap; wrap the icons with gap */
    flex-wrap: wrap;
    flex-direction: column;
}

/* Wrap secondary icons into an auto-centering row */
.cs-hero__actions {
    /* primary first (block), then a horizontal row */
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.cs-hero__actions > .Btn-hero-ico {
    grid-column: auto;
}

/* Group all icons on one line under the primary */
.cs-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.cs-hero__actions > .Btn-hero-cta {
    flex: 1 1 100%;              /* full-width primary */
}

.cs-hero__actions > .Btn-hero-ico {
    flex: 0 0 auto;              /* icons stay their size */
}

/* Hover (desktop) — gold fill blooms in */
@media (hover: hover) and (pointer: fine) {
    .cs-hero .Btn-hero-ico:hover {
        transform: translateY(-2px);
        color: #120a1f;
        background: #f5b301;
        border-color: #fec503;
        box-shadow:
            0 0 24px -4px rgba(245, 179, 1, 0.55),
            0 8px 22px -10px rgba(255, 140, 66, 0.6);
    }
}

.cs-hero .Btn-hero-ico:active {
    transform: scale(0.94);
}

.cs-hero .Btn-hero-ico:focus-visible {
    outline: 2px solid #fec503;
    outline-offset: 3px;
}

/* =========================================================
   TABLET — primary shrinks to content, all icons one row
   ========================================================= */

@media (min-width: 640px) {
    .cs-hero__actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }

    .cs-hero__actions > .Btn-hero-cta {
        flex: 0 1 auto;
        min-width: 190px;
    }

    .cs-hero .Btn-hero-ico {
        width: 50px;
        height: 50px;
    }
}

/* =========================================================
   DESKTOP — slightly larger icons for balance
   ========================================================= */

@media (min-width: 960px) {
    .cs-hero .Btn-hero-ico {
        width: 54px;
        height: 54px;
    }
    .cs-hero .Btn-hero-cta {
        min-height: 54px;
        padding: 15px 26px;
        font-size: 1.02rem;
    }
}

/* =========================================================
   MOBILE — full-width primary, centered icon row
   ========================================================= */

@media (max-width: 639px) {
    .cs-hero__actions {
        justify-content: flex-start;
    }
    .cs-hero__actions > .Btn-hero-cta {
        flex-basis: 100%;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .cs-hero .Btn-hero-cta,
    .cs-hero .Btn-hero-ico {
        transition: none !important;
    }
}

/* =========================================================
   HERO CTA RAIL — MOBILE FIX (vertical icon stacking bug)
   ---------------------------------------------------------
   Forces flex-direction: row on ALL viewports so icons
   sit horizontally beneath the primary pill, wrapping
   cleanly on narrow screens.
   ========================================================= */

/* 1. Parent chain — hard reset inherited alignment */
.cs-hero > .cs-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
}

/* 2. The rail — ROW, always */
.cs-hero .cs-hero__actions {
    display: flex !important;
    flex-direction: row !important;    /* ← THE FIX */
    flex-wrap: wrap !important;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    align-self: stretch;
    width: 100%;
    gap: 12px;
    margin-top: 4px;
    position: relative;
    z-index: 3;
}

/* 3. Primary pill — full-width on phone */
.cs-hero .Btn-hero-cta {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* 4. Secondary icon buttons — horizontal, left-anchored */
.cs-hero .Btn-hero-ico {
    flex: 0 0 auto;
    margin: 0;
    align-self: center;
}

/* 5. Force the primary to occupy its own full-width line,
      then icons flow in a row on the next line */
.cs-hero .cs-hero__actions::after {
    content: "";
    flex-basis: 100%;
    height: 0;
    order: 1;               /* break after primary */
}

.cs-hero .Btn-hero-ico {
    order: 2;               /* icons after the break, in a horizontal row */
}

/* 6. TABLET — back to inline (pill + icons on one row) */
@media (min-width: 640px) {
    .cs-hero .cs-hero__actions {
        flex-wrap: nowrap !important;
    }
    .cs-hero .cs-hero__actions::after {
        display: none;
    }
    .cs-hero .Btn-hero-cta {
        flex: 0 1 auto;
        width: auto;
        min-width: 190px;
    }
    .cs-hero .Btn-hero-ico {
        order: 0;
    }
}

/* 7. Very narrow phones — slightly smaller icons */
@media (max-width: 379px) {
    .cs-hero .Btn-hero-ico {
        width: 46px;
        height: 46px;
    }
    .cs-hero .cs-hero__actions {
        gap: 10px;
    }
}