/* Shared microsite tokens + primitives.
   Prepended to every IA block stylesheet so blocks render correctly
   in the Gutenberg editor too (where the page-level base CSS never
   loads). Safe duplicate of the base layer on the front end. */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Poppins:wght@400;500;600;700&display=swap');

.ps-micro {
    --psm-ink: #1B0B3A;
    --psm-ink-2: #2B2049;
    --psm-purple: #7953FF;
    --psm-purple-soft: #EFEAFF;
    --psm-teal: #80DFD9;
    --psm-mint: #E0FAF9;
    --psm-mint-card: #ECF5F4;
    --psm-gold: #F8BC38;
    --psm-gold-hover: #EFAD1E;
    --psm-body: #4B4560;
    --psm-white: #FFFFFF;
    --psm-serif: 'Libre Baskerville', Georgia, serif;
    --psm-sans: 'Poppins', -apple-system, 'Segoe UI', Roboto, sans-serif;
    --psm-max: 1240px;
    --psm-pad: clamp(20px, 4vw, 48px);
    --psm-radius: 16px;
    font-family: var(--psm-sans);
    color: var(--psm-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.ps-micro *, .ps-micro *::before, .ps-micro *::after { box-sizing: border-box; }
.ps-micro h1, .ps-micro h2, .ps-micro h3, .ps-micro h4 {
    font-family: var(--psm-serif);
    color: var(--psm-ink);
    line-height: 1.22;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
    font-weight: 700;
    text-wrap: balance;
}
.ps-micro p { margin: 0 0 1em; }
.ps-micro img { max-width: 100%; height: auto; display: block; }
.ps-micro a { color: var(--psm-purple); text-decoration: none; }
.ps-micro a:hover { text-decoration: none; }
.ps-micro button { font-family: inherit; }
.ps-micro ul, .ps-micro ol { margin: 0; padding: 0; list-style: none; }
.ps-micro .psm-wrap {
    max-width: var(--psm-max);
    margin: 0 auto;
    padding-left: var(--psm-pad);
    padding-right: var(--psm-pad);
}
.ps-micro .psm-h2 { font-size: clamp(26px, 3.2vw, 38px); text-align: center; }
.ps-micro .psm-lede { max-width: 720px; margin: 0 auto 1.5em; text-align: center; font-size: 16px; text-wrap: balance; }
.ps-micro .psm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--psm-sans); font-size: 15px; font-weight: 600; line-height: 1;
    padding: 16px 28px; border-radius: 999px; border: 0; cursor: pointer;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}
.ps-micro .psm-btn--gold { background: var(--psm-gold); color: var(--psm-ink); }
.ps-micro .psm-btn--gold:hover { background: var(--psm-gold-hover); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(27,11,58,.28); }
.ps-micro .psm-btn--ghost { background: var(--psm-white); color: var(--psm-ink); box-shadow: 0 2px 10px rgba(27,11,58,.18); }
.ps-micro .psm-play {
    display: inline-flex; align-items: center; gap: 12px; font-weight: 600;
    color: var(--psm-white); cursor: pointer; background: none; border: 0;
    font-family: var(--psm-sans); font-size: 15px;
}
.ps-micro .psm-play__disc {
    width: 44px; height: 44px; border-radius: 50%; background: var(--psm-white);
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.ps-micro .psm-play__disc svg { margin-left: 3px; }

/* ================= block styles ================= */
/* IA – How it works */
.ps-micro .psm-how {
    background: linear-gradient(180deg, #F4F2F7 0%, #EFEAFB 100%);
    padding: clamp(56px, 7vw, 96px) 0 0;
    position: relative;
    overflow: hidden;
}
.ps-micro .psm-how__cols {
    display: grid;
    grid-template-columns: minmax(320px, 480px) 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    margin-top: 48px;
}

.ps-micro .psm-how__steps {
    display: flex;
    flex-direction: column;
    gap: 26px;
    position: relative;
    margin-bottom: 64px; /* air under the last card; media stays bottom-aligned */
}
/* dotted spine: round beads running circle-to-circle OVER the cards,
   animated downward to read as a workflow */
.ps-micro .psm-how__steps::before {
    content: "";
    position: absolute;
    left: 54px;
    top: 56px;
    bottom: 64px;
    width: 8px;
    z-index: 2;
    background: radial-gradient(circle 3px at 4px 9px, #7955FF 3px, transparent 3.6px) 0 0 / 8px 18px repeat-y;
    animation: psm-spine-flow 1.2s linear infinite;
    pointer-events: none;
}
@keyframes psm-spine-flow {
    to { background-position: 0 18px; }
}

.ps-micro .psm-how__step {
    background: var(--psm-white);
    border-radius: var(--psm-radius);
    padding: 24px 26px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: 0 8px 30px rgba(27, 11, 58, .07);
    position: relative;
    transition: transform .18s ease, box-shadow .18s ease;
}
.ps-micro .psm-how__step:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 44px rgba(27, 11, 58, .12);
    z-index: 3; /* the transform spawns a stacking context that would trap
                   the icon's z-index below the spine; lift the whole card
                   above the dots while hovered */
}
.ps-micro .psm-how__icon {
    width: 64px;
    height: 64px;
    position: relative;
    z-index: 3; /* above the animated spine */
    box-shadow: 0 0 0 6px var(--psm-white); /* breathing room against the dots */
    border-radius: 50%;
    background: var(--psm-purple);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.ps-micro .psm-how__icon img { width: 38px; height: 38px; }
.ps-micro .psm-how__title {
    font-style: italic;
    font-weight: 400; /* Libre Baskerville has no bold italic cut */
    font-size: 21px;
    margin-bottom: 6px;
}
.ps-micro .psm-how__body {
    font-size: 14px;
    margin: 0;
}

/* Media bleeds to the right and bottom edges of the section, like the comp.
   The grid reserves the column; the image is pulled to the edges. */
.ps-micro .psm-how__media {
    position: relative;
    align-self: end;
    justify-self: end;
    margin-right: calc(-1 * var(--psm-pad) - max(0px, (100vw - var(--psm-max)) / 2));
    width: calc(100% + var(--psm-pad) + max(0px, (100vw - var(--psm-max)) / 2));
}
.ps-micro .psm-how__media { overflow: hidden; }
.ps-micro .psm-how__stage {
    position: relative;
    width: 138%;
    max-width: none;
    /* headroom for the float cards overhanging the tablet's top
       (294 / 2204 of the original composite) */
    padding-top: 13.3%;
}
.ps-micro .psm-how__base { width: 100%; display: block; position: relative; z-index: 1; }
.ps-micro .psm-how__float {
    position: absolute;
    will-change: transform;
    /* shadow lives here, not inside the SVG: internal blur filters
       rasterize soft under transform layers */
    filter: drop-shadow(0 22px 34px rgba(27, 11, 58, .32));
}
/* Left card tucks BEHIND the tablet; right card floats in front */
.ps-micro .psm-how__float--1 { left: 9%;  top: 1.5%; width: 32%;   z-index: 0; }
.ps-micro .psm-how__float--2 { left: 42%; top: 11%;  width: 31.5%; z-index: 2; }
.ps-micro .psm-how__play {
    position: absolute;
    z-index: 3;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 96px; height: 96px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
    transition: transform .15s ease;
}
.ps-micro .psm-how__play img { width: 100%; height: 100%; display: block; }
.ps-micro .psm-how__play:hover { transform: translate(-50%, -50%) scale(1.07); }

@media (max-width: 900px) {
    .ps-micro .psm-how__cols { grid-template-columns: 1fr; }
    .ps-micro .psm-how__media {
        margin-left: calc(-1 * var(--psm-pad));
        margin-right: calc(-1 * var(--psm-pad));
        width: calc(100% + 2 * var(--psm-pad));
    }
    /* Enlarge and center the tablet; the arm on the right crops away */
    .ps-micro .psm-how__stage { width: 150%; margin-left: -4%; }
    .ps-micro .psm-how__steps { margin-bottom: 40px; }
}
