/* ============================================================
   eMembership design layer (December 2026)
   The Etellect logo hexagon on every icon tile, the rose behind
   every page hero, one brand palette and calmer cards.
   Loaded after brand-theme.css on every page.
   ============================================================ */

:root {
    /* The rounded, tilted hexagon from the eMembership / eAutomate / Etellect logo */
    --hex-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='468 0.8 72 72'%3E%3Cpath d='M528.6 10.4A6 6 0 0 1 532.7 14.9L539.2 44.9A6 6 0 0 1 537.3 50.7L514.6 71.3A6 6 0 0 1 508.7 72.6L479.4 63.2A6 6 0 0 1 475.3 58.7L468.8 28.7A6 6 0 0 1 470.7 22.9L493.4 2.3A6 6 0 0 1 499.3 1Z'/%3E%3C/svg%3E");
    --em-pink: #E71B5E;
    --em-pink-hi: #FF4F86;
    --em-pink-lo: #A0123F;
    --em-wine: #8E1640;
    --em-wine-lo: #5A0A26;
    --em-ink: #0C142B;
    --em-hex-pink: linear-gradient(135deg, #FF4F86 0%, #E71B5E 55%, #A0123F 100%);
    --em-hex-wine: linear-gradient(135deg, #8E1640 0%, #5A0A26 100%);

    /* One palette: the old purple, blue, orange and teal accents become the rose's pink and wine */
    --complementary: #E71B5E;
    --complementary-dark: #A0123F;
    --complementary-light: #FCE4EC;
    --analogous-purple: #8E1640;
    --analogous-purple-dark: #5A0A26;
    --analogous-purple-light: #F8BBD0;
    --analogous-orange: #C2185B;
    --analogous-orange-dark: #8E1640;
    --analogous-orange-light: #FCE4EC;
    --triadic-blue: #8E1640;
    --triadic-blue-dark: #5A0A26;
    --triadic-blue-light: #F8BBD0;
}

/* ---------- No gradient-filled text anywhere ---------- */
.section-header.colorful h2,
.section-header.colorful-purple h2,
.section-header.colorful-blue h2,
.hero-tagline h2 {
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
}
.section-header.colorful h2,
.section-header.colorful-purple h2,
.section-header.colorful-blue h2 { color: var(--em-ink) !important; }

/* ---------- Logo hexagon on every icon tile ---------- */
.feature-icon, .integration-icon, .benefit-icon, .advantage-icon, .info-icon, .risk-icon,
.question-number, .type-icon, .intro-icon, .step-icon, .why-icon, .tier-icon, .problem-icon,
.em-hexmark,
[style*="clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%)"] {
    clip-path: none !important;
    border-radius: 0 !important;
    -webkit-mask: var(--hex-mask) center / contain no-repeat;
    mask: var(--hex-mask) center / contain no-repeat;
}
.feature-icon,
.feature-card:nth-child(n) .feature-icon,
.integration-icon {
    background: var(--em-hex-pink) !important;
    color: #fff !important;
}
.feature-card-link:nth-child(even) .feature-icon,
.features-grid > .feature-card:nth-child(even) .feature-icon,
.integration-card:nth-child(even) .integration-icon {
    background: var(--em-hex-wine) !important;
}
.feature-icon i, .integration-icon i { color: #fff !important; }

/* The large icon tile on feature page heroes */
.has-lifestyle-banner [style*="clip-path: polygon(50% 0%"] {
    background: var(--em-hex-pink) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: drop-shadow(0 14px 30px rgba(231, 27, 94, 0.45));
}

/* ---------- Page heroes: the rose behind every page ---------- */
.hero.has-lifestyle-banner,
.page-hero.has-lifestyle-banner,
.about-hero.has-lifestyle-banner,
.ai-governance-hero.has-lifestyle-banner,
.comparison-hero.has-lifestyle-banner,
.contact-hero.has-lifestyle-banner,
.faq-hero.has-lifestyle-banner,
.feature-hero.has-lifestyle-banner,
.payment-hero.has-lifestyle-banner,
.iso-hero.has-lifestyle-banner,
.partners-hero.has-lifestyle-banner,
.tender-hero.has-lifestyle-banner,
.why-hero.has-lifestyle-banner,
.case-study-hero.has-lifestyle-banner,
.parallax-hero.has-lifestyle-banner,
.hero-section.has-lifestyle-banner {
    background-color: var(--em-ink) !important;
    background-image:
        url("/images/em-hero-rose.svg"),
        url("/images/em-hero-comb.svg"),
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 0) !important;
    background-repeat: no-repeat, no-repeat, repeat !important;
    background-size: auto min(118%, 640px), auto min(70%, 360px), 22px 22px !important;
    background-position: right -90px center, left -70px top -40px, 0 0 !important;
    background-attachment: scroll !important;
}
.has-lifestyle-banner::before {
    background:
        radial-gradient(ellipse 70% 70% at 50% -20%, rgba(231, 27, 94, 0.2), transparent 60%),
        radial-gradient(ellipse 40% 60% at 100% 50%, rgba(231, 27, 94, 0.16), transparent 70%) !important;
}
.has-lifestyle-banner > .container { position: relative; z-index: 2; }
.has-lifestyle-banner h1 { text-wrap: balance; }
.has-lifestyle-banner p { text-wrap: pretty; }
@media (max-width: 1180px) {
    .hero.has-lifestyle-banner, .page-hero.has-lifestyle-banner, .about-hero.has-lifestyle-banner,
    .ai-governance-hero.has-lifestyle-banner, .comparison-hero.has-lifestyle-banner, .contact-hero.has-lifestyle-banner,
    .faq-hero.has-lifestyle-banner, .feature-hero.has-lifestyle-banner, .payment-hero.has-lifestyle-banner,
    .iso-hero.has-lifestyle-banner, .partners-hero.has-lifestyle-banner, .tender-hero.has-lifestyle-banner,
    .why-hero.has-lifestyle-banner, .case-study-hero.has-lifestyle-banner, .parallax-hero.has-lifestyle-banner,
    .hero-section.has-lifestyle-banner {
        background-size: auto min(80%, 420px), auto min(50%, 240px), 22px 22px !important;
        background-position: right -160px bottom -80px, left -90px top -60px, 0 0 !important;
    }
}
@media (max-width: 700px) {
    .hero.has-lifestyle-banner, .page-hero.has-lifestyle-banner, .about-hero.has-lifestyle-banner,
    .ai-governance-hero.has-lifestyle-banner, .comparison-hero.has-lifestyle-banner, .contact-hero.has-lifestyle-banner,
    .faq-hero.has-lifestyle-banner, .feature-hero.has-lifestyle-banner, .payment-hero.has-lifestyle-banner,
    .iso-hero.has-lifestyle-banner, .partners-hero.has-lifestyle-banner, .tender-hero.has-lifestyle-banner,
    .why-hero.has-lifestyle-banner, .case-study-hero.has-lifestyle-banner, .parallax-hero.has-lifestyle-banner,
    .hero-section.has-lifestyle-banner {
        background-size: 260px auto, 0 0, 22px 22px !important;
        background-position: right -150px bottom -110px, 0 0, 0 0 !important;
    }
}

/* ---------- Section headings ---------- */
.section-header h2,
.section-title { text-wrap: balance; }
.section-header p { text-wrap: pretty; }
.hero-eyebrow,
.section-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 0.55rem;
}
.hero-eyebrow::before,
.section-badge::before {
    content: "";
    width: 0.8em;
    height: 0.8em;
    flex: none;
    background: currentColor;
    -webkit-mask: var(--hex-mask) center / contain no-repeat;
    mask: var(--hex-mask) center / contain no-repeat;
}

/* ---------- Cards ---------- */
.feature-card {
    position: relative;
    overflow: hidden;
    background: #fff;
}
.feature-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 3px;
    width: 100%;
    background: var(--em-hex-pink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.feature-card:hover::after,
.feature-card-link:focus-visible .feature-card::after { transform: scaleX(1); }
.feature-card h3 { letter-spacing: -0.02em; }
.feature-card-link:focus-visible { outline: 2px solid var(--em-pink); outline-offset: 4px; border-radius: 20px; }

/* ---------- Buttons: a white primary on a dark hero stays readable ---------- */
.has-lifestyle-banner .btn-primary[style*="background: white"] {
    background: var(--em-pink) !important;
    color: #fff !important;
    border-color: var(--em-pink) !important;
}

/* ---------- Footer: built on eAutomate ---------- */
.em-built {
    display: flex;
    align-items: center;
    gap: 1.1rem 1.5rem;
    flex-wrap: wrap;
    margin: 0 0 2rem;
    padding: 1.15rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background:
        radial-gradient(ellipse 60% 140% at 0% 50%, rgba(231, 27, 94, 0.16), transparent 70%),
        rgba(255, 255, 255, 0.025);
}
.em-built-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff !important;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    flex: none;
}
.em-built-mark .em-hexmark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: var(--em-hex-pink);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    font-style: normal;
}
.em-built p {
    flex: 1 1 22rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    line-height: 1.6;
}
.em-built p strong { color: #fff; }
.em-built-link {
    color: #fff !important;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.em-built-link i { color: var(--em-pink-hi); transition: transform 0.2s ease; }
.em-built-link:hover i { transform: translateX(3px); }

/* ---------- Diagrams placed in pages ---------- */
.em-figure {
    margin: 0 auto 3.5rem;
    max-width: 1180px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem;
    align-items: center;
    background: var(--em-ink);
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
    background-size: 22px 22px;
    border-radius: 28px;
    padding: clamp(1.5rem, 3vw, 2.75rem);
    color: #fff;
    overflow: hidden;
}
.em-figure svg { width: 100%; height: auto; display: block; }
.em-figure h2, .em-figure h3 { color: #fff !important; }
.em-figure p { color: rgba(255, 255, 255, 0.74); line-height: 1.7; }
.em-figure figcaption { font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); margin-top: 1rem; }
.em-figure figcaption.em-figure-copy { font-size: 1rem; color: inherit; margin: 0; }
.em-figure-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem) !important; line-height: 1.1; letter-spacing: -0.04em; margin: 0 0 1rem; text-wrap: balance; }
.em-figure-copy .hero-eyebrow { color: #FF4F86; }
.em-figure-copy p + p { margin-top: 0.9rem; }
.em-plat-sec { padding: 4.5rem 0 1rem; background: #fff; }
@media (max-width: 900px) {
    .em-figure { grid-template-columns: 1fr; }
}

/* ---------- Diagram motion ---------- */
.em-svg .em-petal { transform-box: fill-box; transform-origin: center; }
.em-js .em-svg .em-petal { opacity: 0; transform: scale(0.82); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.em-js .em-svg.is-in .em-petal { opacity: 1; transform: none; }
.em-svg .em-node { transition: opacity 0.6s ease; transition-delay: calc(300ms + var(--i, 0) * 60ms); }
.em-js .em-svg .em-node { opacity: 0; }
.em-js .em-svg.is-in .em-node { opacity: 1; }
.em-svg .em-glow { animation: em-breathe 6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes em-breathe { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }

/* ---------- Scroll reveal ---------- */
.em-js .em-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s cubic-bezier(.2, .8, .2, 1), transform 0.7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.em-js .em-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .em-js .em-reveal, .em-js .em-svg .em-petal, .em-js .em-svg .em-node { opacity: 1 !important; transform: none !important; transition: none !important; }
    .em-svg .em-glow, .em-svg .em-packets { animation: none !important; display: none; }
    .feature-card::after { transition: none; }
}

/* Why eMembership: problem tiles in the rose's wine, the answer in pink */
.problem-icon { background: var(--em-hex-wine) !important; color: #fff !important; }
.problem-item:last-child .problem-icon { background: var(--em-hex-pink) !important; }

/* In-page targets from the menu: clear the sticky navbar when jumped to */
#feature-comparison, #pricing-comparison, #benefits, #problem { scroll-margin-top: 96px; }
/* Closing call-to-action bands are navy site-wide (brand-theme.css); keep their headings white */
.cta-section h2, .cta-section h3 { color: #fff !important; }
.cta-section p { color: rgba(255, 255, 255, 0.82); }
/* Emoji replaced by icons in the logo hexagon (agentic AI page), and brand ticks (tender list) */
.em-icon-tile { display: inline-grid; place-items: center; width: 52px; height: 52px; color: #fff; font-size: 1.2rem; background: var(--em-hex-pink); -webkit-mask: var(--hex-mask) center / contain no-repeat; mask: var(--hex-mask) center / contain no-repeat; }
.em-icon-tile--lg { width: 64px; height: 64px; font-size: 1.5rem; }
:nth-child(even) > .em-icon-tile { background: var(--em-hex-wine); }
.em-tick { color: #E71B5E; margin-right: 0.3rem; }
/* Highlight grids: no orphan tile. Four or five small tiles sit on one row on desktop, two by two on tablet */
@media (min-width: 1000px) {
    [style*="repeat(auto-fit, minmax(200px"]:has(> :nth-child(4):last-child), [style*="repeat(auto-fit, minmax(220px"]:has(> :nth-child(4):last-child),
    [style*="repeat(auto-fit, minmax(240px"]:has(> :nth-child(4):last-child), [style*="repeat(auto-fit, minmax(250px"]:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    [style*="repeat(auto-fit, minmax(250px"]:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 1.25rem !important; }
}
@media (min-width: 600px) and (max-width: 999px) {
    [style*="repeat(auto-fit, minmax(2"]:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}