/* ==========================================================================
   Website components — reusable page sections for every frontend page
   Built on the tokens in theme.css. Prefix: e2-
   Contents: hero · strip · cards & icons · features · bento · split · quote · logo wall · posts
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.e2-hero {
    position: relative;
    padding: 64px 0 0;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(180deg, #f2f8fa 0%, #ffffff 78%);
}

/* Dotted grid, fading out towards the edges */
.e2-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(19, 86, 103, .16) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 25%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 25%, transparent 75%);
    pointer-events: none;
}
.e2-hero > .container { position: relative; }

/* Drifting colour blobs */
.e2-aurora { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.e2-aurora span {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .5;
    animation: e2-drift 18s ease-in-out infinite alternate;
}
.e2-aurora span:nth-child(1) { width: 520px; height: 520px; top: -160px; right: -80px; background: #9fe3ea; }
.e2-aurora span:nth-child(2) { width: 420px; height: 420px; top: 30%; left: -160px; background: #c9e6ee; animation-delay: -6s; }
.e2-aurora span:nth-child(3) { width: 360px; height: 360px; bottom: -120px; left: 42%; background: #b9ecdf; animation-delay: -12s; }
@keyframes e2-drift { to { transform: translate(-60px, 50px) scale(1.15); } }

.e2-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 5px 14px 5px 5px;
    border: 1px solid rgba(19, 86, 103, .12);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--site-text);
    background: rgba(255, 255, 255, .8);
    box-shadow: var(--site-shadow-sm);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.e2-hero-badge b {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: #fff;
    background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
}

.e2-hero-title {
    margin: 0 0 22px;
    font-family: inherit;
    font-size: clamp(2.5rem, 5.4vw, 4.4rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.045em;
    color: var(--site-ink);
}
.e2-hero-title > span { display: block; }
.e2-hero-title > .e2-rotator { display: grid; justify-items: start; align-items: start; }
/* Module names can be long: smaller, wrap to at most two balanced lines.
   All words share one grid cell, so the height never jumps while rotating. */
.e2-hero-title > .e2-rotator > span {
    padding-bottom: .06em;
    font-size: .74em;
    line-height: 1.08;
    letter-spacing: -.035em;
    white-space: normal;
    text-wrap: balance;
}
/* Swoosh under the word itself, so it follows one- and two-line names */
.e2-hero-title > .e2-rotator > span::after {
    content: '';
    display: block;
    width: 4.3em;
    height: .19em;
    margin-top: .1em;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--site-accent), rgba(43, 179, 192, 0));
}

.e2-hero-text { max-width: 520px; margin: 0 0 34px; font-size: 1.15rem; line-height: 1.7; color: var(--site-muted); }
.e2-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }

/* "Trusted by" row with stacked company initials / logos */
.e2-trust { display: flex; align-items: center; gap: 16px; }
.e2-trust-stack { display: flex; }
.e2-trust-stack span {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-left: -12px;
    border: 3px solid #fff;
    border-radius: 50%;
    font-size: .85rem;
    font-weight: 700;
    color: #fff;
    background: var(--site-primary);
    box-shadow: var(--site-shadow-sm);
    overflow: hidden;
}
.e2-trust-stack span:first-child { margin-left: 0; }
.e2-trust-stack span:nth-child(2) { background: #0d9488; }
.e2-trust-stack span:nth-child(3) { background: #2bb3c0; }
.e2-trust-stack span:nth-child(4) { background: #0e4352; }
.e2-trust-stack span:last-child:not(:first-child) { color: var(--site-primary); background: var(--site-primary-50); }
.e2-trust-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 5px; background: #fff; }
.e2-trust p { margin: 0; font-size: .88rem; line-height: 1.45; color: var(--site-muted); }
.e2-trust strong { display: block; color: var(--site-ink); }

/* --------------------------------------------------------------------------
   Rotating word — [data-rotator] cycles its children (site.js)
   -------------------------------------------------------------------------- */

.e2-rotator { display: inline-grid; vertical-align: bottom; }
.e2-rotator > span {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(45%);
    transition: opacity .5s var(--site-ease), transform .5s var(--site-ease);
    white-space: nowrap;
}
.e2-rotator > span.is-active { opacity: 1; transform: none; }
.e2-rotator > span.is-leaving { opacity: 0; transform: translateY(-45%); }
/* Hidden words must not paint at all (matters for gradient text, which is clipped to glyphs) */
.e2-rotator.is-ready > span:not(.is-active):not(.is-leaving) { visibility: hidden; }
.e2-rotator > span.is-leaving { visibility: visible; }
/* Without JS, just show the first word */
.e2-rotator:not(.is-ready) > span:first-child { opacity: 1; transform: none; }
.e2-rotator:not(.is-ready) > span:not(:first-child) { visibility: hidden; }

/* --------------------------------------------------------------------------
   Hero stage — dashboard in perspective, orbiting modules, floating cards
   -------------------------------------------------------------------------- */

.e2-stage {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1 / .92;
    perspective: 1600px;
}
/* Disc, rings and window are stacked in the same grid cell, all centred */
.e2-stage-disc, .e2-orbit, .e2-window { grid-area: 1 / 1; }

/* Glow disc + rings */
.e2-stage-disc {
    width: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(43, 179, 192, .28) 0%, rgba(43, 179, 192, 0) 68%);
}
.e2-orbit {
    position: relative;
    aspect-ratio: 1;
    border: 1.5px dashed rgba(19, 86, 103, .28);
    border-radius: 50%;
    animation: e2-spin-slow 60s linear infinite;
}
.e2-orbit-1 { width: 74%; }
.e2-orbit-2 { width: 104%; animation-duration: 90s; animation-direction: reverse; border-style: solid; border-color: rgba(19, 86, 103, .14); }
@keyframes e2-spin-slow { to { transform: rotate(360deg); } }

/* Icons sit on the ring and counter-rotate so they stay upright */
.e2-orbit-item {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
}
.e2-orbit-item > span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    font-size: 1rem;
    background: #fff;
    box-shadow: 0 10px 24px -10px rgba(15, 23, 42, .35);
    animation: e2-spin-slow 60s linear infinite reverse;
}
.e2-orbit-2 .e2-orbit-item > span { animation-duration: 90s; animation-direction: normal; }
/* Points on each ring (left/top = 50% + 50%·cos/sin of the angle) */
.e2-orbit-1 .e2-orbit-item:nth-child(1) { left: 97%;   top: 67.1%; }  /*  20° */
.e2-orbit-1 .e2-orbit-item:nth-child(2) { left: 11.7%; top: 82.1%; }  /* 140° */
.e2-orbit-1 .e2-orbit-item:nth-child(3) { left: 41.3%; top: .8%; }    /* 260° */
.e2-orbit-2 .e2-orbit-item:nth-child(1) { left: 58.7%; top: 99.2%; }  /*  80° */
.e2-orbit-2 .e2-orbit-item:nth-child(2) { left: 3%;    top: 32.9%; }  /* 200° */
.e2-orbit-2 .e2-orbit-item:nth-child(3) { left: 88.3%; top: 17.9%; }  /* 320° */

/* Dashboard window, tilted in 3D; straightens on hover */
.e2-window {
    position: relative;
    z-index: 1;
    width: 88%;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    background: #fff;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .8) inset,
        0 50px 100px -40px rgba(11, 42, 51, .5),
        0 30px 60px -30px rgba(19, 86, 103, .35);
    overflow: hidden;
    transition: transform .5s var(--site-ease);
}
.e2-stage:hover .e2-window { transform: translateY(-6px); }

.e2-window-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--site-line);
    background: #fbfcfd;
}
.e2-window-bar span { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.e2-window-bar span:nth-child(1) { background: #ff5f57; }
.e2-window-bar span:nth-child(2) { background: #febc2e; }
.e2-window-bar span:nth-child(3) { background: #28c840; }
.e2-window-bar em {
    flex: 1;
    max-width: 220px;
    margin: 0 auto;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: .7rem;
    font-style: normal;
    text-align: center;
    color: var(--site-muted);
    background: #eef2f6;
}
.e2-window-bar em i { margin-right: 4px; font-size: .6rem; color: #16a34a; }

.e2-window-body { position: relative; aspect-ratio: 16 / 10.5; background: #f6f9fb; container-type: inline-size; }
.e2-window-body > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Drawn dashboard (shown when there is no screenshot) */
/* Text scales with the window width so the mock never overflows */
.e2-mock { position: absolute; inset: 0; display: flex; gap: 2.2cqi; padding: 2.2cqi; font-size: clamp(5px, 1.75cqi, 10px); }
.e2-mock-side {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 19%;
    padding: 12px 10px;
    border-radius: 10px;
    background: var(--site-dark);
}
.e2-mock-logo { width: 70%; height: 10px; margin-bottom: 10px; border-radius: 5px; background: var(--site-accent); }
.e2-mock-side i { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.e2-mock-side i.is-on { background: rgba(255, 255, 255, .5); }
.e2-mock-main { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.e2-mock-head { display: flex; align-items: center; justify-content: space-between; }
.e2-mock-head strong { font-size: 1.25em; color: var(--site-ink); }
.e2-mock-head i { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--site-primary), var(--site-accent)); }

.e2-mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.e2-mock-kpi { padding: 8px 10px; border-radius: 9px; background: #fff; box-shadow: var(--site-shadow-sm); }
.e2-mock-kpi small { display: block; color: var(--site-muted); }
.e2-mock-kpi b { display: block; margin: 2px 0; font-size: 1.3em; color: var(--site-ink); white-space: nowrap; }
.e2-mock-kpi em { font-style: normal; font-weight: 700; color: #16a34a; }
.e2-mock-kpi em.down { color: #e11d48; }
.e2-mock-kpi.is-main { background: linear-gradient(135deg, var(--site-primary), var(--site-primary-400)); }
.e2-mock-kpi.is-main small, .e2-mock-kpi.is-main b { color: #fff; }
.e2-mock-kpi.is-main em { color: #a7f3d0; }

.e2-mock-grid { flex: 1; display: grid; grid-template-columns: 1.7fr 1fr; gap: 8px; min-height: 0; }
.e2-mock-card { display: flex; flex-direction: column; min-height: 0; padding: 10px; border-radius: 9px; background: #fff; box-shadow: var(--site-shadow-sm); }
.e2-mock-card > small { margin-bottom: 6px; font-weight: 700; color: var(--site-ink); }
.e2-mock-card svg { flex: 1; width: 100%; min-height: 0; }
.e2-mock-line { fill: none; stroke: var(--site-primary-400); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: e2-draw 2s .3s var(--site-ease) forwards; }
.e2-mock-area { fill: url(#e2AreaFill); opacity: 0; animation: e2-fade .8s 1.2s forwards; }
@keyframes e2-draw { to { stroke-dashoffset: 0; } }
@keyframes e2-fade { to { opacity: 1; } }

.e2-mock-bars { display: grid; gap: 7px; }
.e2-mock-bars div { display: grid; gap: 3px; color: var(--site-muted); }
.e2-mock-bars div span { height: 5px; border-radius: 3px; background: #e6edf2; overflow: hidden; }
.e2-mock-bars div span::after { content: ''; display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--site-primary), var(--site-accent)); transform-origin: left; animation: e2-growx 1.2s .5s var(--site-ease) both; }
.e2-mock-bars div:nth-child(1) span::after { width: 86%; }
.e2-mock-bars div:nth-child(2) span::after { width: 64%; }
.e2-mock-bars div:nth-child(3) span::after { width: 48%; }
.e2-mock-bars div:nth-child(4) span::after { width: 32%; }
@keyframes e2-growx { from { transform: scaleX(0); } }

/* Floating card (e.g. badge on an image frame) */
.e2-float {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 16px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 24px 48px -20px rgba(15, 23, 42, .35);
    animation: e2-float 7s ease-in-out infinite;
}
.e2-float strong { display: block; font-size: .95rem; line-height: 1.2; color: var(--site-ink); white-space: nowrap; }
.e2-float small { display: block; font-size: .74rem; color: var(--site-muted); white-space: nowrap; }
@keyframes e2-float { 50% { transform: translateY(-10px); } }

/* Mouse-follow depth: site.js sets --px / --py on [data-depth] elements */
[data-depth] { translate: var(--px, 0) var(--py, 0); transition: translate .4s var(--site-ease); }

/* --------------------------------------------------------------------------
   Strip — one endlessly scrolling row of pills (e.g. module names)
   -------------------------------------------------------------------------- */

.e2-strip {
    margin-top: 64px;
    padding: 22px 0;
    border-top: 1px solid var(--site-line);
    background: rgba(255, 255, 255, .6);
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.e2-strip-track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: e2-marquee 50s linear infinite;
}
.e2-strip:hover .e2-strip-track { animation-play-state: paused; }

.e2-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 6px;
    border: 1px solid var(--site-line);
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--site-text);
    background: #fff;
    transition: border-color .2s, color .2s;
}
.e2-pill i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: .75rem;
    color: var(--site-primary);
    background: var(--site-primary-50);
}
.e2-pill:hover { color: var(--site-primary); border-color: rgba(19, 86, 103, .3); }

/* --------------------------------------------------------------------------
   Cards & icon tiles
   -------------------------------------------------------------------------- */

.e2-card {
    position: relative;
    height: 100%;
    padding: 28px;
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius-lg);
    background: #fff;
    transition: transform .3s var(--site-ease), box-shadow .3s var(--site-ease), border-color .3s;
}
.e2-card-hover:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: var(--site-shadow);
}
.e2-card h3 { margin: 0 0 10px; font-size: 1.12rem; font-weight: 700; color: var(--site-ink); }
.e2-card p { margin: 0; font-size: .92rem; line-height: 1.7; color: var(--site-muted); }
.e2-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.e2-card-num { font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: #cbd5e1; }

/* Icon tile + colour variants */
.e2-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    font-size: 1.15rem;
    color: var(--site-primary);
    background: var(--site-primary-50);
    transition: transform .3s var(--site-ease);
}
.e2-card-hover:hover .e2-icon { transform: rotate(-6deg) scale(1.06); }
.e2-icon-sm { width: 40px; height: 40px; border-radius: 12px; font-size: .95rem; }
.e2-icon--teal   { color: #0d9488; background: #e6faf7; }
.e2-icon--cyan   { color: #0891b2; background: #e7f8fc; }
.e2-icon--orange { color: #ea580c; background: #fff2e8; }
.e2-icon--indigo { color: #4f46e5; background: #eef0ff; }
.e2-icon--green  { color: #16a34a; background: #eafaf0; }
.e2-icon--rose   { color: #e11d48; background: #fff0f3; }
.e2-icon--violet { color: #9333ea; background: #f6efff; }
.e2-icon--amber  { color: #ca8a04; background: #fef8e4; }
.e2-icon--blue   { color: #2563eb; background: #edf4ff; }
.e2-icon--brand  { color: #fff; background: linear-gradient(135deg, var(--site-primary), var(--site-accent)); }

/* Check list */
.e2-checks { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.e2-checks li { display: flex; gap: 14px; align-items: flex-start; }
.e2-checks li > i {
    display: grid;
    place-items: center;
    flex: none;
    width: 26px;
    height: 26px;
    margin-top: 2px;
    border-radius: 50%;
    font-size: .7rem;
    color: #fff;
    background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
}
.e2-checks strong { display: block; margin-bottom: 2px; font-size: .98rem; color: var(--site-ink); }
.e2-checks span { font-size: .88rem; line-height: 1.6; color: var(--site-muted); }

/* --------------------------------------------------------------------------
   Feature grid — one panel split into cells by hairline dividers
   -------------------------------------------------------------------------- */

.e2-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;                         /* the gap shows the panel colour as dividers */
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius-lg);
    background: var(--site-line);
    box-shadow: var(--site-shadow-sm);
    overflow: hidden;
}
.e2-feature {
    position: relative;
    padding: 36px 30px 34px;
    background: #fff;
    transition: background .3s var(--site-ease);
}
/* accent line that slides in on hover */
.e2-feature::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--site-primary), var(--site-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--site-ease);
}
.e2-feature:hover { background: linear-gradient(180deg, #f3f9fb 0%, #fff 100%); }
.e2-feature:hover::before { transform: scaleX(1); }
.e2-feature .e2-icon { margin-bottom: 22px; transition: transform .3s var(--site-ease); }
.e2-feature:hover .e2-icon { transform: translateY(-4px); }
.e2-feature h3 { margin: 0 0 8px; font-family: inherit; font-size: 1.05rem; font-weight: 700; color: var(--site-ink); }
.e2-feature p { margin: 0; font-size: .9rem; line-height: 1.65; color: var(--site-muted); }

/* --------------------------------------------------------------------------
   Bento grid
   -------------------------------------------------------------------------- */

.e2-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.e2-bento-tall { grid-row: span 2; }

.e2-card-dark {
    display: flex;
    flex-direction: column;
    border: 0;
    color: #cde4e9;
    background:
        radial-gradient(420px 260px at 100% 0%, rgba(43, 179, 192, .35), transparent 70%),
        linear-gradient(160deg, var(--site-primary) 0%, var(--site-dark) 100%);
    overflow: hidden;
}
.e2-card-dark::after {
    content: '';
    position: absolute;
    right: -70px;
    bottom: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 0 0 30px rgba(255, 255, 255, .025), 0 0 0 60px rgba(255, 255, 255, .02);
    pointer-events: none;
}
.e2-card-dark h3 { color: #fff; font-size: 1.4rem; }
.e2-card-kicker { display: block; margin-bottom: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8fc6d0; }
.e2-card-dark .e2-icon { color: #fff; background: rgba(255, 255, 255, .12); }

.e2-mini-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 24px; }
.e2-mini {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    transition: background .2s;
}
.e2-mini:hover { background: rgba(255, 255, 255, .09); }
.e2-mini strong { display: block; margin-bottom: 4px; font-size: .9rem; color: #fff; }
.e2-mini span { font-size: .8rem; line-height: 1.5; color: #9fc1ca; }

.e2-tags { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.e2-tags span {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 500;
    color: #d6eef2;
    background: rgba(255, 255, 255, .08);
}

/* --------------------------------------------------------------------------
   Split rows — text beside an image, alternating
   -------------------------------------------------------------------------- */

.e2-split + .e2-split { margin-top: 96px; }
.e2-prose { font-size: 1.02rem; line-height: 1.8; color: var(--site-muted); }
.e2-prose p:last-child { margin-bottom: 0; }
/* Headings coming from rich-text settings */
.e2-prose h1, .e2-prose h2, .e2-prose h3, .e2-prose h4, .e2-prose h5, .e2-prose h6 {
    margin: 0 0 12px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--site-text);
}

/* Showcase — a PNG floats freely: glow circle + dotted accent behind, outline-following shadow */
.e2-showcase { position: relative; padding: 28px; }
.e2-showcase::before {
    content: '';
    position: absolute;
    inset: 4% 2% 8%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 28%, rgba(43, 179, 192, .32), rgba(19, 86, 103, .12) 55%, transparent 74%);
}
.e2-showcase::after {
    content: '';
    position: absolute;
    right: -4px;
    bottom: 6px;
    width: 130px;
    height: 110px;
    background-image: radial-gradient(rgba(19, 86, 103, .28) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
}
.e2-showcase-art { position: relative; z-index: 1; }
.e2-showcase-art img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 28px 36px rgba(11, 42, 51, .28));
    animation: e2-float 9s ease-in-out infinite;
}
/* No image uploaded yet: a quiet dashed placeholder */
.e2-showcase-empty {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    border: 2px dashed rgba(19, 86, 103, .25);
    border-radius: 28px;
    font-size: 3rem;
    color: rgba(19, 86, 103, .3);
}
.e2-showcase-art:has(img:not([hidden])) .e2-showcase-empty { display: none; }
.e2-showcase .e2-float { z-index: 2; right: 8px; bottom: 8px; }

/* --------------------------------------------------------------------------
   Quote / contact block
   -------------------------------------------------------------------------- */

.e2-quote {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 40px 80px -40px rgba(11, 42, 51, .4);
    overflow: hidden;
}
.e2-quote-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 48px;
    color: #cde4e9;
    background:
        radial-gradient(400px 260px at 0% 100%, rgba(43, 179, 192, .35), transparent 70%),
        linear-gradient(160deg, var(--site-primary) 0%, var(--site-dark) 100%);
    overflow: hidden;
}
.e2-quote-aside::after {
    content: '';
    position: absolute;
    top: -90px;
    right: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 0 0 36px rgba(255, 255, 255, .025);
}
.e2-quote-aside .e2-title { position: relative; z-index: 1; color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.e2-quote-aside .e2-checks { position: relative; z-index: 1; margin: 12px 0 32px; }
.e2-quote-aside .e2-checks strong { color: #fff; }
.e2-quote-aside .e2-checks span { color: #9fc1ca; }
.e2-quote-aside .e2-checks li > i { background: rgba(255, 255, 255, .15); }

.e2-contact {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
    text-decoration: none;
}
.e2-contact .e2-icon { color: var(--site-primary); background: #fff; }
.e2-contact small { display: block; font-size: .78rem; color: #9fc1ca; }
.e2-contact strong { display: block; font-size: 1.1rem; color: #fff; }

.e2-quote-form { padding: 48px; }
.e2-quote-form h3 { margin: 0 0 6px; font-family: inherit; font-size: 1.4rem; font-weight: 700; color: var(--site-ink); }
.e2-quote-form > p { margin: 0 0 28px; color: var(--site-muted); }

/* Form fields */
.e2-field { margin-bottom: 18px; }
.e2-label { display: block; margin-bottom: 7px; font-size: .85rem; font-weight: 600; color: var(--site-ink); }
.e2-input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--site-line);
    border-radius: 12px;
    background-color: var(--site-soft);
    color: var(--site-ink);
    font: inherit;
    font-size: .95rem;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
    appearance: none;
}
textarea.e2-input { height: auto; min-height: 110px; padding: 14px 16px; resize: vertical; }
select.e2-input {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.e2-input::placeholder { color: #a3adba; }
.e2-input:hover { border-color: #cbd5e1; }
.e2-input:focus {
    outline: none;
    border-color: var(--site-primary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(19, 86, 103, .1);
}

.e2-alert {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: .9rem;
    color: #065f46;
    background: #ecfdf5;
}

/* --------------------------------------------------------------------------
   Logo wall — one panel, a labelled scrolling row per group
   -------------------------------------------------------------------------- */

.e2-logowall {
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius-lg);
    background: #fff;
    box-shadow: var(--site-shadow-sm);
    overflow: hidden;
}
.e2-logowall-row { display: grid; grid-template-columns: 220px 1fr; align-items: center; }
.e2-logowall-row + .e2-logowall-row { border-top: 1px solid var(--site-line); }

.e2-logowall-label {
    display: flex;
    align-items: center;
    gap: 12px;
    align-self: stretch;
    padding: 22px 24px;
    border-right: 1px solid var(--site-line);
    background: var(--site-soft);
}
.e2-logowall-label strong { font-size: .92rem; font-weight: 700; color: var(--site-ink); }
.e2-logowall .e2-marquee-track { gap: 8px; padding: 0 12px; }

/* A single company: logo if it loads, otherwise its name as a wordmark */
.e2-brand {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    min-width: 150px;
    height: 84px;
    padding: 0 24px;
    text-decoration: none;
}
.e2-brand span {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.01em;
    white-space: nowrap;
    color: #9aa8b8;
    transition: color .25s;
}
.e2-brand img {
    position: absolute;
    inset: 22px 16px;
    width: calc(100% - 32px);
    height: calc(100% - 44px);
    object-fit: contain;
    background: #fff;
    filter: grayscale(1);
    opacity: .55;
    transition: filter .25s, opacity .25s;
}
/* The name is only a fallback: once the logo has loaded, hide it so it can't show through */
.e2-brand:has(img.is-loaded) span,
html:not(.js-img) .e2-brand:has(img:not([hidden])) span { visibility: hidden; }
.e2-brand:hover span { color: var(--site-primary); }
.e2-brand:hover img { filter: none; opacity: 1; }
/* keep the muted look once the fade-in (theme.css) has finished */
.js-img .e2-brand img[data-hide-on-error].is-loaded { opacity: .55; }
.js-img .e2-brand:hover img[data-hide-on-error].is-loaded { opacity: 1; }

/* --------------------------------------------------------------------------
   News cards
   -------------------------------------------------------------------------- */

.e2-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.e2-head-row .e2-title { margin-bottom: 0; }

/* Compact post cards — fill the row whatever the count (1–3) */
.e2-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

.e2-post {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 10px;
    border: 1px solid var(--site-line);
    border-radius: 20px;
    background: #fff;
    text-decoration: none;
    overflow: hidden;
    transition: transform .3s var(--site-ease), box-shadow .3s var(--site-ease), border-color .3s;
}
/* gradient line along the top on hover */
.e2-post::before {
    content: '';
    position: absolute;
    left: 24px;
    right: 24px;
    top: 0;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--site-primary), var(--site-accent));
    transform: scaleX(0);
    transition: transform .4s var(--site-ease);
}
.e2-post:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--site-shadow); }
.e2-post:hover::before { transform: scaleX(1); }

.e2-post-media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 2 / 1;
    border-radius: 14px;
    background: linear-gradient(150deg, var(--site-primary-50) 0%, #eaf8fa 100%);
    overflow: hidden;
}
.e2-post-media > i { font-size: 1.8rem; color: rgba(19, 86, 103, .22); }
.e2-post-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--site-ease);
}
.e2-post:hover .e2-post-media img { transform: scale(1.05); }
.e2-post-date {
    position: absolute;
    left: 10px;
    top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    color: var(--site-ink);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.e2-post-date i { color: var(--site-primary); }

.e2-post-body { display: flex; flex-direction: column; flex: 1; gap: 14px; padding: 16px 8px 8px; }
.e2-post-body strong {
    display: -webkit-box;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--site-ink);
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color .2s;
}
.e2-post:hover .e2-post-body strong { color: var(--site-primary); }
.e2-post-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-size: .85rem;
    font-weight: 600;
    color: var(--site-primary);
}
.e2-post-more i { font-size: .72rem; transition: transform .2s; }
.e2-post:hover .e2-post-more i { transform: translateX(4px); }

/* Fixed 4-column variant for listing pages (4 → 3 → 2 → 1 as the screen narrows) */
.e2-posts-grid { grid-template-columns: repeat(4, 1fr); }

/* Loading placeholders (built by page scripts) */
.e2-post-skeleton { pointer-events: none; }
.e2-post-skeleton .e2-post-body i { display: block; height: 12px; border-radius: 6px; }
.e2-post-skeleton .e2-post-body i:nth-child(1) { width: 90%; height: 14px; }
.e2-post-skeleton .e2-post-body i:nth-child(2) { width: 60%; height: 14px; }
.e2-post-skeleton .e2-post-body i:nth-child(3) { width: 35%; margin-top: 8px; }
.e2-shimmer {
    background: linear-gradient(90deg, #edf2f6 25%, #f6f9fb 50%, #edf2f6 75%);
    background-size: 200% 100%;
    animation: e2-shimmer 1.4s linear infinite;
}
@keyframes e2-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* --------------------------------------------------------------------------
   Page header — top of inner pages (title, lead, optional search)
   -------------------------------------------------------------------------- */

.e2-pagehead {
    position: relative;
    padding: 36px 0 40px;
    text-align: center;
    color: #cde4e9;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(520px 260px at 88% 0%, rgba(43, 179, 192, .35), transparent 70%),
        radial-gradient(420px 240px at 8% 100%, rgba(29, 122, 146, .35), transparent 70%),
        linear-gradient(160deg, var(--site-dark) 0%, var(--site-primary) 100%);
}
/* faint dot grid */
.e2-pagehead::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000 20%, transparent 80%);
}
.e2-pagehead-title {
    margin: 0 0 8px;
    font-family: inherit;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
    color: #fff;
}
.e2-pagehead .e2-lead { max-width: 600px; margin: 0 auto; font-size: 1rem; color: #b9d6dc; }
.e2-pagehead .e2-eyebrow { margin-bottom: 12px; }

/* Split variant: title on the left, search (or actions) on the right */
.e2-pagehead-split { text-align: left; }
.e2-pagehead-split .e2-crumbs { justify-content: flex-start; }
.e2-pagehead-split .e2-lead { margin: 0; }
.e2-pagehead-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.e2-pagehead-row > :first-child { min-width: 0; }
.e2-pagehead-split .e2-search { flex: 0 0 380px; margin: 0; }
.e2-crumbs span { font-weight: 600; }

/* Search field */
.e2-search {
    position: relative;
    display: block;
    max-width: 520px;
    margin: 22px auto 0;
}
.e2-search i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    transition: color .15s;
}
.e2-search input {
    width: 100%;
    height: 50px;
    padding: 0 20px 0 50px;
    border: 1px solid var(--site-line);
    border-radius: 999px;
    background: #fff;
    color: var(--site-ink);
    font: inherit;
    font-size: .98rem;
    box-shadow: var(--site-shadow-sm);
    transition: border-color .15s, box-shadow .15s;
}
.e2-search input::placeholder { color: #a3adba; }
.e2-search input:focus {
    outline: none;
    border-color: var(--site-primary);
    box-shadow: 0 0 0 4px rgba(19, 86, 103, .1), var(--site-shadow-sm);
}
.e2-search:focus-within i { color: var(--site-primary); }

.e2-section-tight { padding-top: 56px; }
.e2-sentinel { height: 1px; }

/* Empty state */
.e2-empty {
    max-width: 420px;
    margin: 0 auto;
    padding: 48px 32px;
    border: 1px dashed #d5dee7;
    border-radius: var(--site-radius-lg);
    text-align: center;
    background: #fff;
}
.e2-empty .e2-icon { margin: 0 auto 18px; }
.e2-empty h3 { margin: 0 0 6px; font-family: inherit; font-size: 1.15rem; font-weight: 700; color: var(--site-ink); }
.e2-empty p { margin: 0 0 22px; color: var(--site-muted); }

/* --------------------------------------------------------------------------
   Article page — header variant, cover, body typography, gallery, sidebar
   -------------------------------------------------------------------------- */

.e2-pagehead-article { padding-bottom: 40px; }
.e2-pagehead-article.has-cover { padding-bottom: 104px; }   /* room for the overlapping cover */
.e2-pagehead-article .e2-pagehead-title { max-width: 820px; margin: 0 auto 12px; font-size: clamp(1.6rem, 3vw, 2.2rem); }

.e2-crumbs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: .85rem;
    color: var(--site-muted);
}
.e2-crumbs a { color: var(--site-muted); text-decoration: none; transition: color .15s; }
.e2-crumbs a:hover { color: var(--site-primary); }
.e2-crumbs i { font-size: .6rem; color: #b6c2cf; }

.e2-article-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; font-size: .88rem; color: var(--site-muted); }
.e2-article-meta i { margin-right: 4px; color: var(--site-primary); }
.e2-news-tag {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--site-primary);
    background: var(--site-primary-50);
}

/* Light-on-green versions inside the page header */
.e2-pagehead .e2-crumbs { color: #9cc3cb; }
.e2-pagehead .e2-crumbs a { color: #9cc3cb; }
.e2-pagehead .e2-crumbs a:hover { color: #fff; }
.e2-pagehead .e2-crumbs i { color: rgba(255, 255, 255, .35); }
.e2-pagehead .e2-crumbs span { color: #fff; }
.e2-pagehead .e2-article-meta { color: #b9d6dc; }
.e2-pagehead .e2-article-meta i { color: #7fd3dd; }
.e2-pagehead .e2-news-tag { color: #fff; background: rgba(255, 255, 255, .14); }
.e2-pagehead .e2-search input { border-color: transparent; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .4); }

.e2-article-section { padding-top: 0; }
.e2-article-cover {
    position: relative;
    display: grid;
    place-items: center;
    max-width: 960px;
    aspect-ratio: 2 / 1;
    margin: -72px auto 48px;
    border: 6px solid #fff;
    border-radius: 26px;
    background: linear-gradient(150deg, var(--site-primary-50) 0%, #eaf8fa 100%);
    box-shadow: 0 30px 60px -30px rgba(11, 42, 51, .35);
    overflow: hidden;
}
.e2-article-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.e2-pagehead-article:not(.has-cover) + .e2-article-section { padding-top: 48px; }
/* Cover image failed to load (layout.js hides it): fall back to normal spacing */
body:has(.e2-article-cover[hidden]) .e2-pagehead-article.has-cover { padding-bottom: 40px; }
.e2-article-section:has(.e2-article-cover[hidden]) { padding-top: 48px; }

/* Rich-text article body */
.e2-article { font-size: 1.06rem; line-height: 1.85; color: var(--site-text); }
.e2-article > :first-child { margin-top: 0; }
.e2-article p { margin: 0 0 1.25em; }
.e2-article p:empty { display: none; }   /* blank editor paragraphs; site.js also hides <p><br></p> */
.e2-article h1, .e2-article h2, .e2-article h3, .e2-article h4 {
    margin: 1.8em 0 .6em;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
    color: var(--site-ink);
}
.e2-article h1, .e2-article h2 { font-size: 1.55rem; }
.e2-article h3 { font-size: 1.3rem; }
.e2-article h4 { font-size: 1.12rem; }
.e2-article a { color: var(--site-primary); font-weight: 600; text-underline-offset: 3px; }
.e2-article ul, .e2-article ol { margin: 0 0 1.25em; padding-left: 1.3em; }
.e2-article li { margin-bottom: .4em; }
.e2-article li::marker { color: var(--site-accent); }
.e2-article blockquote {
    margin: 1.6em 0;
    padding: 18px 24px;
    border-left: 3px solid var(--site-accent);
    border-radius: 0 14px 14px 0;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--site-ink);
    background: var(--site-soft);
}
.e2-article img { max-width: 100%; height: auto; margin: 1em 0; border-radius: 16px; }
.e2-article table { width: 100%; margin: 0 0 1.25em; border-collapse: collapse; font-size: .95rem; }
.e2-article th, .e2-article td { padding: 10px 12px; border: 1px solid var(--site-line); }

/* Gallery */
.e2-gallery { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--site-line); }
.e2-gallery-title { margin: 0 0 18px; font-family: inherit; font-size: 1.15rem; font-weight: 700; color: var(--site-ink); }
.e2-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.e2-gallery-item {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    background: linear-gradient(150deg, var(--site-primary-50) 0%, #eaf8fa 100%);
    overflow: hidden;
}
.e2-gallery-item > i { font-size: 1.4rem; color: rgba(19, 86, 103, .25); }
.e2-gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--site-ease); }
.e2-gallery-item:hover img { transform: scale(1.06); }

/* Single reading column */
.e2-article-wrap { max-width: 780px; margin: 0 auto; }

/* Footer bar: back link + share icons */
.e2-article-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--site-line);
}
.e2-share { display: flex; align-items: center; gap: 8px; }
.e2-share-label { margin-right: 6px; font-size: .82rem; font-weight: 600; color: var(--site-muted); }
.e2-share a,
.e2-share-copy {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--site-line);
    border-radius: 50%;
    font-size: .85rem;
    color: var(--site-text);
    background: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s, background .2s, border-color .2s, transform .2s;
}
.e2-share a:hover,
.e2-share-copy:hover { color: #fff; border-color: transparent; background: var(--site-primary); transform: translateY(-2px); }

/* Copied state: green check + small tooltip */
.e2-share-copy.is-copied { color: #fff; border-color: transparent; background: #059669; }
.e2-share-copy.is-copied i::before { content: '\f00c'; }
.e2-share-copy.is-copied::after {
    content: attr(data-copied-label);
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: .74rem;
    font-weight: 600;
    white-space: nowrap;
    color: #fff;
    background: var(--site-ink);
}

.e2-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--site-primary);
    text-decoration: none;
}
.e2-back i { font-size: .75rem; transition: transform .2s; }
.e2-back:hover i { transform: translateX(-4px); }

/* --------------------------------------------------------------------------
   Newsletter
   -------------------------------------------------------------------------- */

.e2-newsletter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 48px;
    border: 1px solid var(--site-line);
    border-radius: 24px;
    background:
        radial-gradient(420px 220px at 100% 0%, rgba(43, 179, 192, .12), transparent 70%),
        #fff;
    box-shadow: var(--site-shadow-sm);
}
.e2-newsletter .e2-title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 8px; }
.e2-newsletter-text p { margin: 0; color: var(--site-muted); line-height: 1.7; }
.e2-newsletter-row { display: flex; gap: 10px; }
.e2-newsletter-row .e2-input { flex: 1; height: 52px; border-radius: 14px; }
.e2-newsletter-row .e2-btn { height: 52px; border-radius: 14px; }
.e2-alert-danger { color: #991b1b; background: #fef2f2; }

/* --------------------------------------------------------------------------
   Panels, lists & callouts — building blocks for inner pages
   -------------------------------------------------------------------------- */

/* White content panel */
.e2-panel {
    padding: 36px;
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius-lg);
    background: #fff;
    box-shadow: var(--site-shadow-sm);
}
.e2-panel-title {
    margin: 0 0 18px;
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--site-ink);
}
.e2-panel > .e2-article:last-child > :last-child { margin-bottom: 0; }

/* Icon list rows (hairline divided), e.g. benefits { margin: 0; padding: 0; list-style: none; }
.e2-list-arrow { margin-left: auto; align-self: center; font-size: .75rem; color: #b6c2cf; transition: transform .2s, color .2s; }

/* Horizontal callout: text left, actions right */
.e2-callout {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius-lg);
    background:
        radial-gradient(360px 180px at 100% 0%, rgba(43, 179, 192, .12), transparent 70%),
        #fff;
    box-shadow: var(--site-shadow-sm);
}
.e2-callout-text { flex: 1; min-width: 0; }
.e2-callout-text h2, .e2-callout-text h3 { margin: 0 0 4px; font-family: inherit; font-size: 1.25rem; font-weight: 700; color: var(--site-ink); }
.e2-callout-text p { margin: 0; color: var(--site-muted); }
.e2-callout-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Brand (dark green) card */
.e2-card-brand {
    position: relative;
    padding: 30px;
    border-radius: var(--site-radius-lg);
    color: #cde4e9;
    background:
        radial-gradient(320px 200px at 100% 0%, rgba(43, 179, 192, .35), transparent 70%),
        linear-gradient(160deg, var(--site-primary) 0%, var(--site-dark) 100%);
    overflow: hidden;
}
.e2-card-brand h2, .e2-card-brand h3 { margin: 0 0 8px; font-family: inherit; font-size: 1.25rem; font-weight: 700; color: #fff; }
.e2-card-brand p { margin: 0 0 20px; line-height: 1.65; }
.e2-card-brand .e2-btn-light { border-color: transparent; }
.e2-btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .3); background: transparent; }
.e2-btn-ghost-light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .08); }

/* Clickable info card (contact methods) */
.e2-linkcard {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 20px;
    border: 1px solid var(--site-line);
    border-radius: 18px;
    background: #fff;
    text-decoration: none;
    transition: transform .25s var(--site-ease), box-shadow .25s, border-color .25s;
}
a.e2-linkcard:hover { transform: translateY(-3px); border-color: transparent; box-shadow: var(--site-shadow); }
.e2-linkcard div { min-width: 0; }
.e2-linkcard small { display: block; font-size: .78rem; font-weight: 600; color: var(--site-muted); }
.e2-linkcard strong { display: block; font-size: .95rem; font-weight: 700; color: var(--site-ink); overflow-wrap: anywhere; }

/* Contact details list inside the dark aside of .e2-quote */
.e2-aside-lead { position: relative; z-index: 1; margin: 0 0 28px; color: #9fc1ca; }
.e2-reach { position: relative; z-index: 1; display: grid; gap: 10px; margin: 0 0 auto; padding: 0; list-style: none; }
.e2-reach a, .e2-reach-static {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
    text-decoration: none;
    transition: background .2s, border-color .2s, transform .2s;
}
.e2-reach a:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); transform: translateX(3px); }
.e2-reach .e2-icon { color: var(--site-primary); background: #fff; }
.e2-reach small { display: block; font-size: .76rem; font-weight: 600; color: #9fc1ca; }
.e2-reach strong { display: block; font-size: .96rem; font-weight: 700; line-height: 1.4; color: #fff; overflow-wrap: anywhere; }
.e2-reach div { min-width: 0; }
.e2-aside-social { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); }
.e2-aside-social span { margin-right: auto; font-size: .82rem; font-weight: 600; color: #9fc1ca; }
.e2-aside-social a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    text-decoration: none;
    transition: background .2s, color .2s;
}
.e2-aside-social a:hover { color: var(--site-primary); background: #fff; }

/* Wide map with a floating address card */
.e2-mapcard {
    position: relative;
    aspect-ratio: 21 / 8;
    min-height: 340px;
    border: 1px solid var(--site-line);
    border-radius: 24px;
    background: var(--site-soft);
    box-shadow: var(--site-shadow-sm);
    overflow: hidden;
}
.e2-mapcard iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.e2-mapcard-info {
    position: absolute;
    left: 24px;
    bottom: 24px;
    max-width: 320px;
    padding: 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 48px -20px rgba(15, 23, 42, .4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.e2-mapcard-info .e2-icon { margin-bottom: 12px; }
.e2-mapcard-info h2 { margin: 0 0 6px; font-family: inherit; font-size: 1.1rem; font-weight: 800; color: var(--site-ink); }
.e2-mapcard-info p { margin: 0 0 16px; font-size: .9rem; line-height: 1.55; color: var(--site-muted); }
.e2-mapcard-info .e2-btn { height: 42px; }

/* Five-cell variant of the feature panel */
.e2-features-5 { grid-template-columns: repeat(5, 1fr); }
.e2-features-5 .e2-feature { padding: 28px 22px; }
.e2-features-5 .e2-feature h3 { font-size: .98rem; }
.e2-features-5 .e2-feature p { font-size: .85rem; }

/* Wide call-to-action card: text left, buttons right */
.e2-cta-wide { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 40px 44px; }
.e2-cta-wide-text { max-width: 640px; }
.e2-cta-wide-text h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.02em; }
.e2-cta-wide-text p { margin: 0; font-size: 1.02rem; }
.e2-cta-wide-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Module "at a glance" card */
.e2-glance {
    position: sticky;
    top: calc(var(--sh-height) + 20px);
    padding: 28px;
    border-radius: var(--site-radius-lg);
    color: #cde4e9;
    background:
        radial-gradient(300px 200px at 100% 0%, rgba(43, 179, 192, .35), transparent 70%),
        linear-gradient(160deg, var(--site-primary) 0%, var(--site-dark) 100%);
    box-shadow: var(--site-shadow);
}
.e2-glance-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    border-radius: 20px;
    font-size: 1.5rem;
    color: var(--site-primary);
    background: #fff;
    overflow: hidden;
}
.e2-glance-icon img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; background: #fff; }
.e2-glance h2 { margin: 0 0 20px; font-family: inherit; font-size: 1.3rem; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; color: #fff; }
.e2-glance-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.e2-glance-stats div { padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; background: rgba(255, 255, 255, .06); }
.e2-glance-stats strong { display: block; font-size: 1.8rem; font-weight: 800; line-height: 1; color: #fff; }
.e2-glance-stats small { display: block; margin-top: 6px; font-size: .78rem; font-weight: 600; color: #9fc1ca; }

/* Feature groups: two-column cards, each a list of "name + description" rows */
.e2-fgroups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.e2-fgroup {
    position: relative;
    padding: 28px 30px 30px;
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius-lg);
    background: #fff;
    box-shadow: var(--site-shadow-sm);
    overflow: hidden;
    transition: box-shadow .3s var(--site-ease), transform .3s var(--site-ease);
}
.e2-fgroup:hover { transform: translateY(-3px); box-shadow: var(--site-shadow); }
.e2-fgroup header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--site-line); }
.e2-fgroup h3 { flex: 1; margin: 0; font-family: inherit; font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; color: var(--site-ink); }
.e2-fgroup .e2-icon { color: #fff; background: linear-gradient(135deg, var(--site-primary), var(--site-accent)); }
.e2-fgroup-num { font-size: 1.6rem; font-weight: 800; line-height: 1; color: #e6edf2; }
.e2-fgroup-items ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.e2-fgroup-items li { position: relative; padding-left: 28px; font-size: .92rem; line-height: 1.6; color: var(--site-muted); }
.e2-fgroup-items li::before {
    content: '\f00c';
    position: absolute;
    left: 0;
    top: 3px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-family: 'Font Awesome 5 Free';
    font-size: .5rem;
    font-weight: 900;
    color: var(--site-primary);
    background: var(--site-primary-50);
}
.e2-fgroup-items li strong { display: block; margin-bottom: 1px; font-size: .96rem; font-weight: 700; color: var(--site-ink); }
.e2-fgroup-items > :not(ul) { font-size: .92rem; line-height: 1.7; color: var(--site-muted); }

/* Module overview cards (/features) */
.e2-modules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.e2-module {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius-lg);
    background: #fff;
    text-decoration: none;
    overflow: hidden;
    transition: transform .3s var(--site-ease), box-shadow .3s var(--site-ease), border-color .3s;
}
/* gradient line along the top on hover */
.e2-module::before {
    content: '';
    position: absolute;
    left: 24px;
    right: 24px;
    top: 0;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--site-primary), var(--site-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--site-ease);
}
.e2-module:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--site-shadow); }
.e2-module:hover::before { transform: scaleX(1); }
.e2-module-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.e2-module-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    font-size: 1.2rem;
    color: var(--site-primary);
    background: var(--site-primary-50);
    overflow: hidden;
    transition: transform .3s var(--site-ease);
}
.e2-module-icon img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; background: var(--site-primary-50); }
.e2-module:hover .e2-module-icon { transform: scale(1.06) rotate(-3deg); }
.e2-module-arrow {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: .78rem;
    color: var(--site-primary);
    background: var(--site-primary-50);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .25s, transform .25s, background .2s, color .2s;
}
.e2-module:hover .e2-module-arrow { opacity: 1; transform: none; color: #fff; background: var(--site-primary); }
.e2-module strong { font-size: 1.08rem; font-weight: 800; line-height: 1.35; letter-spacing: -.01em; color: var(--site-ink); transition: color .2s; }
.e2-module:hover strong { color: var(--site-primary); }
.e2-module small { font-size: .9rem; line-height: 1.65; color: var(--site-muted); }
.e2-module-more { margin-top: auto; padding-top: 10px; font-size: .86rem; font-weight: 700; color: var(--site-primary); }

/* Module cards */
.e2-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.e2-svc {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--site-line);
    border-radius: 18px;
    background: #fff;
    text-decoration: none;
    transition: transform .25s var(--site-ease), box-shadow .25s, border-color .25s;
}
.e2-svc:hover { transform: translateY(-3px); border-color: transparent; box-shadow: var(--site-shadow); }
.e2-svc-text { flex: 1; min-width: 0; }
.e2-svc-text strong { display: block; font-size: .95rem; font-weight: 700; line-height: 1.35; color: var(--site-ink); transition: color .15s; }
.e2-svc-text small {
    display: -webkit-box;
    margin-top: 3px;
    font-size: .8rem;
    line-height: 1.5;
    color: var(--site-muted);
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.e2-svc:hover .e2-svc-text strong { color: var(--site-primary); }
.e2-svc:hover .e2-list-arrow { color: var(--site-primary); transform: translateX(3px); }

/* Account area: profile card + menu */
.e2-account { position: sticky; top: calc(var(--sh-height) + 20px); display: grid; gap: 16px; }
.e2-account-card {
    padding: 28px;
    text-align: center;
    border-radius: var(--site-radius-lg);
    color: #cde4e9;
    background:
        radial-gradient(300px 180px at 100% 0%, rgba(43, 179, 192, .35), transparent 70%),
        linear-gradient(160deg, var(--site-primary) 0%, var(--site-dark) 100%);
    box-shadow: var(--site-shadow);
}
.e2-avatar {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin: 0 auto 16px;
    border: 4px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 800;
    color: var(--site-primary);
    background: #fff;
}
.e2-account-card h2 { margin: 0 0 4px; font-family: inherit; font-size: 1.2rem; font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.e2-account-card p { margin: 0 0 18px; font-size: .9rem; color: #9fc1ca; overflow-wrap: anywhere; }
.e2-account-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.e2-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 600;
    color: #d6eef2;
    background: rgba(255, 255, 255, .1);
}
.e2-badge.is-ok { color: #a7f3d0; background: rgba(16, 185, 129, .18); }
.e2-badge.is-warn { color: #fde68a; background: rgba(245, 158, 11, .2); }

.e2-account-menu {
    padding: 8px;
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius-lg);
    background: #fff;
    box-shadow: var(--site-shadow-sm);
}
.e2-account-menu a,
.e2-account-menu button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-size: .92rem;
    font-weight: 600;
    text-align: left;
    color: var(--site-text);
    background: transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.e2-account-menu a > i:first-child, .e2-account-menu button > i { width: 18px; text-align: center; color: var(--site-muted); }
.e2-account-menu a .e2-list-arrow { margin-left: auto; }
.e2-account-menu a:hover { color: var(--site-primary); background: var(--site-soft); }
.e2-account-menu a.is-active { color: var(--site-primary); background: var(--site-primary-50); }
.e2-account-menu a.is-active > i:first-child { color: var(--site-primary); }
.e2-account-menu form { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--site-line); }
.e2-account-menu button:hover { color: #be123c; background: #fff1f2; }
.e2-account-menu button:hover > i { color: #be123c; }

/* Subscription plan card */
.e2-plancard {
    padding: 30px;
    border-radius: var(--site-radius-lg);
    color: #cde4e9;
    background:
        radial-gradient(380px 220px at 100% 0%, rgba(43, 179, 192, .38), transparent 70%),
        linear-gradient(160deg, var(--site-primary) 0%, var(--site-dark) 100%);
    box-shadow: var(--site-shadow);
}
.e2-plancard > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.e2-plancard-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8fc6d0; }
.e2-plancard h2 { margin: 0; font-family: inherit; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.e2-plancard header p { margin: 8px 0 0; max-width: 520px; font-size: .95rem; line-height: 1.6; color: #b9d6dc; }
.e2-plancard .e2-status { background: rgba(255, 255, 255, .12); color: #fff; }
.e2-plancard .e2-status.is-paid { color: #a7f3d0; background: rgba(16, 185, 129, .2); }
.e2-plancard .e2-status.is-unpaid { color: #fde68a; background: rgba(245, 158, 11, .22); }

.e2-plancard-progress { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.e2-plancard-progress span { flex: none; font-size: .82rem; font-weight: 600; color: #cde4e9; }
.e2-plancard progress {
    flex: 1;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
}
.e2-plancard progress::-webkit-progress-bar { background: rgba(255, 255, 255, .15); }
.e2-plancard progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, var(--site-accent), #7fe0e8); }
.e2-plancard progress::-moz-progress-bar { border-radius: 999px; background: linear-gradient(90deg, var(--site-accent), #7fe0e8); }

.e2-plancard-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0 0; }
.e2-plancard-facts.is-compact { grid-template-columns: repeat(3, 1fr); }
.e2-plancard-facts div { padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; background: rgba(255, 255, 255, .06); }
.e2-plancard-facts dt { margin: 0 0 4px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8fb3bd; }
.e2-plancard-facts dd { margin: 0; font-size: .95rem; font-weight: 700; color: #fff; }
.e2-plancard > .e2-btn { margin-top: 22px; }

/* Panel header with a status on the right, and plain label/value facts */
.e2-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.e2-panel-head .e2-panel-title { margin: 0; }
.e2-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 20px; }
.e2-facts div { padding: 14px 16px; border-radius: 14px; background: var(--site-soft); box-shadow: inset 0 0 0 1px var(--site-line); }
.e2-facts dt { margin: 0 0 4px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--site-muted); }
.e2-facts dd { margin: 0; font-size: .98rem; font-weight: 800; color: var(--site-ink); overflow-wrap: anywhere; }
.e2-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Dashboard bits */
.e2-callout-compact { padding: 20px 24px; }
.e2-callout-compact .e2-callout-text h2 { font-size: 1.05rem; }
.e2-section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.e2-section-title-row h2 { margin: 0; font-family: inherit; font-size: 1.15rem; font-weight: 800; color: var(--site-ink); }
.e2-link-more { font-size: .88rem; font-weight: 700; color: var(--site-primary); text-decoration: none; }
.e2-link-more i { margin-left: 4px; font-size: .72rem; transition: transform .2s; }
.e2-link-more:hover i { transform: translateX(3px); }

/* Invoices: summary tiles + list that turns into cards on small screens */
.e2-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.e2-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--site-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--site-shadow-sm);
}
.e2-stat strong { display: block; font-size: 1.3rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--site-ink); }
.e2-stat small { display: block; margin-top: 2px; font-size: .78rem; font-weight: 600; color: var(--site-muted); }

.e2-invoices {
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius-lg);
    background: #fff;
    box-shadow: var(--site-shadow-sm);
    overflow: hidden;
}
.e2-invoices-head, .e2-invoice {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr .9fr 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 22px;
}
.e2-invoices-head {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--site-muted);
    background: var(--site-soft);
}
.e2-invoice { border-top: 1px solid var(--site-line); transition: background .2s; }
.e2-invoice:hover { background: #fbfdfe; }
.e2-invoice-id strong { display: block; font-size: .95rem; font-weight: 800; color: var(--site-ink); }
.e2-invoice-id small { display: block; margin-top: 2px; font-size: .78rem; color: var(--site-muted); }
.e2-invoice-plan { font-size: .92rem; font-weight: 600; color: var(--site-text); overflow-wrap: anywhere; }
.e2-invoice-amount { font-size: .98rem; font-weight: 800; color: var(--site-ink); font-variant-numeric: tabular-nums; }
.e2-invoice-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.e2-invoice-actions .e2-btn { height: 38px; padding: 0 14px; font-size: .85rem; border-radius: 10px; }
.e2-icon-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--site-line);
    border-radius: 10px;
    font-size: .85rem;
    color: var(--site-primary);
    background: #fff;
    text-decoration: none;
    transition: color .2s, background .2s, border-color .2s;
}
.e2-icon-btn:hover { color: #fff; border-color: transparent; background: var(--site-primary); }

.e2-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    color: #475569;
    background: #eef2f6;
    white-space: nowrap;
}
.e2-status.is-paid { color: #047857; background: #e6f8ef; }
.e2-status.is-unpaid { color: #b45309; background: #fef3c7; }
.e2-status.is-processing { color: #1d4ed8; background: #e3edff; }
.e2-status.is-failed { color: #be123c; background: #ffe4e9; }

.e2-pager { margin-top: 20px; }
.e2-pager nav > div:first-child { display: none; }   /* hide the "showing x to y" line, keep the page buttons */
.e2-pager .pagination { justify-content: center; gap: 4px; margin: 0; }
.e2-pager .page-link { border: 1px solid var(--site-line); border-radius: 10px; color: var(--site-text); }
.e2-pager .active > .page-link { border-color: var(--site-primary); background: var(--site-primary); color: #fff; }
.e2-invoices-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.e2-alert-info { color: #1e40af; background: #eff6ff; }

/* Read-only field with a lock */
.e2-input-locked { position: relative; }
.e2-input-locked .e2-input { padding-right: 44px; color: var(--site-muted); background: #eef2f6; cursor: not-allowed; }
.e2-input-locked i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: .85rem; color: #94a3b8; }
.e2-hint { display: block; margin-top: 6px; font-size: .8rem; color: var(--site-muted); }

/* Readable-width panel (long-form content) */
.e2-panel-reading { max-width: 900px; margin: 0 auto; padding: 44px 48px; }

/* Icon tile holding an uploaded image over a fallback glyph */
.e2-icon { position: relative; overflow: hidden; }
.e2-icon > img { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); object-fit: contain; background: inherit; }

/* --------------------------------------------------------------------------
   About page — intro visual, chapters, pillars, goals
   -------------------------------------------------------------------------- */

/* Larger first paragraph(s) for an intro */
.e2-article-lead { font-size: 1.12rem; }
.e2-article-lead > p:first-of-type { font-size: 1.25rem; line-height: 1.7; color: var(--site-ink); }

/* Photo with floating badges */
.e2-about-visual { position: relative; padding: 18px; }
.e2-about-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    background: linear-gradient(135deg, var(--site-primary-50), #eaf8fa);
    transform: rotate(3deg);
}
.e2-about-photo {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    border-radius: 24px;
    background:
        radial-gradient(circle at 75% 15%, rgba(43, 179, 192, .4), transparent 55%),
        linear-gradient(155deg, var(--site-primary) 0%, var(--site-dark) 100%);
    box-shadow: var(--site-shadow);
    overflow: hidden;
}
.e2-about-photo > i { font-size: 4rem; color: rgba(255, 255, 255, .22); }
.e2-about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.e2-about-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 14px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--site-ink);
    background: #fff;
    box-shadow: 0 18px 36px -16px rgba(15, 23, 42, .35);
    animation: e2-float 7s ease-in-out infinite;
}
.e2-about-badge i { color: var(--site-primary); }
.e2-about-badge-a { top: 8%; left: -4%; }
.e2-about-badge-b { bottom: 10%; right: -3%; animation-delay: -3.5s; }

/* Sticky chapter index */
.e2-toc {
    position: sticky;
    top: calc(var(--sh-height) + 20px);
    display: grid;
    gap: 2px;
    max-height: calc(100vh - var(--sh-height) - 48px);
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}
.e2-toc-label:not(:first-child) { margin-top: 18px; }
.e2-toc-label { margin-bottom: 10px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--site-muted); }
.e2-toc a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 9px 12px;
    border-left: 2px solid var(--site-line);
    border-radius: 0 10px 10px 0;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--site-muted);
    text-decoration: none;
    transition: color .2s, background .2s, border-color .2s;
}
.e2-toc a span { font-size: .72rem; font-weight: 700; color: #b6c2cf; transition: color .2s; }
.e2-toc a:hover { color: var(--site-primary); }
.e2-toc a.is-active { color: var(--site-primary); border-left-color: var(--site-primary); background: #fff; box-shadow: var(--site-shadow-sm); }
.e2-toc a.is-active span { color: var(--site-accent); }

/* Chapter cards */
.e2-chapters { display: grid; gap: 20px; }
.e2-chapter {
    position: relative;
    padding: 36px 40px;
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius-lg);
    background: #fff;
    box-shadow: var(--site-shadow-sm);
    overflow: hidden;
    scroll-margin-top: 96px;
}
.e2-chapter-num {
    position: absolute;
    top: 8px;
    right: 24px;
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    color: transparent;
    background: linear-gradient(180deg, rgba(19, 86, 103, .14), rgba(19, 86, 103, 0));
    -webkit-background-clip: text;
    background-clip: text;
    pointer-events: none;
}
.e2-chapter h2 {
    position: relative;
    margin: 0 0 16px;
    padding-left: 16px;
    font-family: inherit;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--site-ink);
}
.e2-chapter h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: .2em;
    bottom: .2em;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--site-primary), var(--site-accent));
}
.e2-chapter-body > :last-child { margin-bottom: 0; }
/* bullet lists become tidy check grids */
.e2-chapter-body ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px 20px;
    padding: 0;
    list-style: none;
}
.e2-chapter-body li {
    position: relative;
    margin: 0;
    padding: 12px 14px 12px 44px;
    border-radius: 12px;
    font-size: .94rem;
    line-height: 1.5;
    background: var(--site-soft);
}
.e2-chapter-body li::before {
    content: '\f00c';
    position: absolute;
    left: 12px;
    top: 12px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-family: 'Font Awesome 5 Free';
    font-size: .55rem;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
}

/* Step-by-step list: numbered circles joined by a line */
.e2-steps { margin: 0; padding: 0; list-style: none; counter-reset: e2-step; }
.e2-steps li {
    position: relative;
    min-height: 38px;
    margin: 0;
    padding: 7px 0 30px 56px;
    counter-increment: e2-step;
    font-size: .98rem;
    line-height: 1.6;
    color: var(--site-text);
}
.e2-steps li:last-child { min-height: 0; padding-bottom: 6px; }
.e2-steps li::before {
    content: counter(e2-step);
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: .88rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
    box-shadow: 0 8px 16px -8px rgba(19, 86, 103, .6);
}
.e2-steps li::after {
    content: '';
    position: absolute;
    left: 18px;
    top: 44px;      /* just under this step's badge … */
    bottom: -6px;   /* … down to just above the next one */
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(19, 86, 103, .3), rgba(43, 179, 192, .25));
}
.e2-steps li:last-child::after { display: none; }
.e2-steps li strong, .e2-steps li b { color: var(--site-ink); }
.e2-steps li code {
    padding: 2px 8px;
    border-radius: 8px;
    font-size: .88em;
    color: var(--site-primary);
    background: var(--site-primary-50);
}

/* Tip box under a guide */
.e2-tip {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid #fde9b6;
    border-radius: 14px;
    background: #fffbea;
}
.e2-tip > i { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; font-size: .85rem; color: #b45309; background: #fef3c7; }
.e2-tip p { margin: 0; padding-top: 4px; font-size: .92rem; line-height: 1.6; color: #78350f; }
.e2-tip strong { color: #92400e; }

/* Group heading between chapters (e.g. "Terms of Use" / "Privacy Policy") */
.e2-chapter-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 12px 0 0;
    font-family: inherit;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--site-primary);
}
.e2-chapter-group::after { content: ''; flex: 1; height: 1px; background: var(--site-line); }
.e2-chapters > .e2-chapter-group:first-child { margin-top: 0; }

/* Plain section title (h3) inside a chapter card */
.e2-chapter h3 { position: relative; margin: 0 0 16px; padding-left: 16px; font-family: inherit; font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; color: var(--site-ink); }
.e2-chapter h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: .2em;
    bottom: .2em;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--site-primary), var(--site-accent));
}

/* Legal text: comfortable, slightly tighter reading size */
.e2-legal { font-size: .97rem; line-height: 1.8; }
.e2-legal > :last-child { margin-bottom: 0; }
.e2-legal ul { padding-left: 1.2em; }
.e2-legal li { margin-bottom: .7em; }
.e2-legal li strong:first-child { color: var(--site-ink); }

/* Important notice at the top of a page */
.e2-notice {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 40px;
    padding: 24px 28px;
    border: 1px solid #cfe3e8;
    border-radius: var(--site-radius-lg);
    background:
        radial-gradient(360px 160px at 100% 0%, rgba(43, 179, 192, .14), transparent 70%),
        var(--site-primary-50);
}
.e2-notice .e2-icon { flex: none; }
.e2-notice .e2-article { font-size: .98rem; }
.e2-notice .e2-article > :last-child { margin-bottom: 0; }

/* Chapter heading with an icon tile, and nested sub-blocks (benefit groups) */
.e2-chapter h2:has(.e2-icon) { display: flex; align-items: center; gap: 12px; padding-left: 0; }
.e2-chapter h2:has(.e2-icon)::before { display: none; }
.e2-chapter h2 .e2-icon { flex: none; }
.e2-chapter-sub { margin-top: 24px; padding-top: 22px; border-top: 1px dashed var(--site-line); }
.e2-chapter-sub:first-of-type { margin-top: 8px; }
.e2-chapter-sub h3 {
    margin: 0 0 14px;
    font-family: inherit;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--site-primary);
}

/* Mission / vision cards */
.e2-pillar {
    position: relative;
    height: 100%;
    padding: 36px;
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius-lg);
    background: #fff;
    box-shadow: var(--site-shadow-sm);
    overflow: hidden;
}
.e2-pillar .e2-icon { margin-bottom: 20px; }
.e2-pillar h3 { margin: 0 0 12px; font-family: inherit; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; color: var(--site-ink); }
.e2-pillar .e2-article { font-size: 1rem; }
.e2-pillar .e2-article > :last-child { margin-bottom: 0; }
.e2-pillar.is-dark {
    border: 0;
    color: #cde4e9;
    background:
        radial-gradient(380px 240px at 100% 0%, rgba(43, 179, 192, .35), transparent 70%),
        linear-gradient(160deg, var(--site-primary) 0%, var(--site-dark) 100%);
}
.e2-pillar.is-dark h3 { color: #fff; }
.e2-pillar.is-dark .e2-article { color: #cde4e9; }
.e2-pillar.is-dark .e2-icon { color: #fff; background: rgba(255, 255, 255, .14); }

/* Goals */
.e2-goals { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.e2-goal {
    position: relative;
    flex: 1 1 340px;
    max-width: 400px;
    padding: 28px;
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius-lg);
    background: #fff;
    overflow: hidden;
    transition: transform .3s var(--site-ease), box-shadow .3s var(--site-ease), border-color .3s;
}
.e2-goal:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--site-shadow); }
.e2-goal .e2-icon { margin-bottom: 18px; color: #fff; background: linear-gradient(135deg, var(--site-primary), var(--site-accent)); }
.e2-goal-num {
    position: absolute;
    top: 16px;
    right: 22px;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    color: #e6edf2;
}
.e2-goal h3 { margin: 0 0 8px; font-family: inherit; font-size: 1.05rem; font-weight: 700; color: var(--site-ink); }
.e2-goal p { margin: 0; font-size: .92rem; line-height: 1.65; color: var(--site-muted); }

/* --------------------------------------------------------------------------
   FAQ — native <details> accordion (no JS)
   -------------------------------------------------------------------------- */

.e2-faq {
    max-width: 860px;
    margin: 0 auto;
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius-lg);
    background: #fff;
    box-shadow: var(--site-shadow-sm);
    overflow: hidden;
}
.e2-faq details + details { border-top: 1px solid var(--site-line); }
.e2-faq summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
    transition: background .2s;
}
.e2-faq summary::-webkit-details-marker { display: none; }
.e2-faq summary:hover { background: #f8fbfc; }
.e2-faq summary:focus-visible { outline: 2px solid rgba(19, 86, 103, .35); outline-offset: -2px; }
.e2-faq-num {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--site-primary);
    background: var(--site-primary-50);
    transition: color .2s, background .2s;
}
.e2-faq summary strong { flex: 1; font-size: 1rem; font-weight: 600; line-height: 1.45; color: var(--site-ink); }
.e2-faq-toggle {
    position: relative;
    flex: none;
    width: 28px;
    height: 28px;
    border: 1px solid var(--site-line);
    border-radius: 50%;
    transition: transform .3s var(--site-ease), background .2s, border-color .2s;
}
.e2-faq-toggle::before,
.e2-faq-toggle::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 1.5px;
    margin: -.75px 0 0 -5px;
    border-radius: 2px;
    background: var(--site-primary);
    transition: transform .3s var(--site-ease), background .2s;
}
.e2-faq-toggle::after { transform: rotate(90deg); }
.e2-faq details[open] .e2-faq-num { color: #fff; background: var(--site-primary); }
.e2-faq details[open] .e2-faq-toggle { border-color: transparent; background: var(--site-primary); transform: rotate(180deg); }
.e2-faq details[open] .e2-faq-toggle::before, .e2-faq details[open] .e2-faq-toggle::after { background: #fff; }
.e2-faq details[open] .e2-faq-toggle::after { transform: rotate(0deg); }
.e2-faq-answer { padding: 0 24px 22px 72px; }
.e2-faq-answer.e2-article { font-size: .98rem; }

/* --------------------------------------------------------------------------
   Pricing — plan cards & price tables
   -------------------------------------------------------------------------- */

/* Centred row of plans; 1–3 per row, each 300–380px wide */
.e2-plans { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.e2-plan {
    --plan: var(--site-primary);
    --plan-soft: var(--site-primary-50);
    flex: 1 1 300px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius-lg);
    background: #fff;
    box-shadow: var(--site-shadow-sm);
    overflow: hidden;
    transition: transform .3s var(--site-ease), box-shadow .3s;
}
.e2-plan:hover { transform: translateY(-5px); box-shadow: var(--site-shadow); }
.e2-plans > .e2-plan:nth-child(3n+2) { --plan: #0d9488; --plan-soft: #e6faf7; }
.e2-plans > .e2-plan:nth-child(3n+3) { --plan: #1d7a92; --plan-soft: #e7f4f8; }

/* Tinted header band: name, price, short description */
.e2-plan-head {
    position: relative;
    padding: 28px 30px 26px;
    background:
        radial-gradient(240px 140px at 100% 0%, rgba(255, 255, 255, .7), transparent 70%),
        var(--plan-soft);
    border-bottom: 1px solid var(--site-line);
}
.e2-plan-head::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: var(--plan);
}
.e2-plan-name { margin: 0 0 16px; font-family: inherit; font-size: 1.05rem; font-weight: 800; letter-spacing: .01em; color: var(--plan); }
.e2-plan-name p { margin: 0; }
.e2-plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 4px; color: var(--site-ink); }
.e2-plan-price span { font-size: 1.4rem; font-weight: 700; color: var(--plan); }
.e2-plan-price strong { font-size: 2.9rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.e2-plan-price small { margin-left: 6px; font-size: .85rem; font-weight: 600; color: var(--site-muted); }
.e2-plan-desc { margin: 14px 0 0; font-size: .9rem; line-height: 1.6; color: var(--site-text); }
.e2-plan-desc p:last-child { margin-bottom: 0; }

.e2-plan-body { display: flex; flex: 1; flex-direction: column; padding: 24px 30px 30px; }
.e2-plan-features { display: grid; gap: 12px; margin: 0 0 26px; padding: 0; list-style: none; }
.e2-plan-features li { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; line-height: 1.45; color: var(--site-text); }
.e2-plan-features i {
    display: grid;
    place-items: center;
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    font-size: .58rem;
    color: #fff;
    background: var(--plan);
}
.e2-plan-actions { display: grid; gap: 10px; margin-top: auto; }
.e2-plan .e2-btn-primary { background: var(--plan); box-shadow: none; }
.e2-plan .e2-btn-primary:hover { filter: brightness(1.1); }
.e2-plan .e2-btn-light i { color: var(--plan); }
.e2-note { margin: 12px 0 0; font-size: .85rem; color: var(--site-muted); }

/* Module pack: chips + four spec tiles */
.e2-pack { padding: 20px; border: 1px solid var(--site-line); border-radius: 16px; background: var(--site-soft); }
.e2-pack + .e2-pack { margin-top: 16px; }
.e2-pack-title { margin: 0 0 16px; font-family: inherit; font-size: 1.05rem; font-weight: 700; color: var(--site-ink); }
.e2-pack-title i { margin-right: 8px; color: var(--site-primary); }
.e2-pack-modules {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}
.e2-pack-modules li { display: flex; align-items: baseline; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: .88rem; line-height: 1.4; background: #fff; }
.e2-pack-modules b { flex: none; min-width: 38px; color: var(--site-primary); }
.e2-pack-modules span { color: var(--site-muted); }

.e2-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.e2-specs div { padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--site-line); }
.e2-specs small { display: block; margin-bottom: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--site-muted); }
.e2-specs strong { font-size: .98rem; font-weight: 800; color: var(--site-ink); }

/* Bundle discounts: stair-step tiles that rise with the module count */
.e2-tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end; }
.e2-tier {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
    padding: 18px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(160deg, var(--site-primary-400) 0%, var(--site-primary) 100%);
}
.e2-tier strong { font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.e2-tier span { font-size: .85rem; font-weight: 600; color: #cde4e9; }
.e2-tier:nth-child(1) { min-height: 110px; opacity: .72; }
.e2-tier:nth-child(2) { min-height: 140px; opacity: .82; }
.e2-tier:nth-child(3) { min-height: 170px; opacity: .92; }
.e2-tier:nth-child(4) { min-height: 200px; background: linear-gradient(160deg, var(--site-primary) 0%, var(--site-dark) 100%); }
.e2-tier-extra {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 14px 18px;
    border: 1px dashed #b7d3da;
    border-radius: 14px;
    font-weight: 600;
    color: var(--site-text);
    background: var(--site-primary-50);
}
.e2-tier-extra i { color: var(--site-primary); }
.e2-tier-extra strong { margin-left: auto; font-size: 1.1rem; font-weight: 800; color: var(--site-primary); }

/* Service price cards */
.e2-service-prices { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; }
.e2-service-price { padding: 22px; border: 1px solid var(--site-line); border-radius: 16px; background: var(--site-soft); }
.e2-service-price small { display: block; margin-bottom: 10px; font-size: .88rem; font-weight: 600; line-height: 1.5; color: var(--site-muted); }
.e2-service-price strong { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; color: var(--site-ink); }
.e2-service-price span { display: block; margin-top: 4px; font-size: .85rem; color: var(--site-muted); }
.e2-service-price.is-free { border-color: transparent; color: #cde4e9; background: linear-gradient(160deg, var(--site-primary) 0%, var(--site-dark) 100%); }
.e2-service-price.is-free small { color: #9fc1ca; }
.e2-service-price.is-free strong { font-size: 2rem; color: #fff; }

/* Clean table */
.e2-table-wrap { overflow-x: auto; border: 1px solid var(--site-line); border-radius: 14px; }
.e2-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .92rem; }
.e2-table th {
    padding: 12px 16px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
    color: var(--site-muted);
    background: var(--site-soft);
}
.e2-table td { padding: 14px 16px; border-top: 1px solid var(--site-line); line-height: 1.6; color: var(--site-text); vertical-align: top; }
.e2-table td small { display: block; color: var(--site-muted); }
.e2-table tbody tr:hover td { background: #fbfdfe; }

/* Chips (e.g. discount tiers) */
.e2-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.e2-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--site-line);
    border-radius: 12px;
    font-size: .92rem;
    color: var(--site-text);
    background: var(--site-soft);
}
.e2-chip b { color: var(--site-primary); }

/* --------------------------------------------------------------------------
   Videos — gallery cards, category tabs, player, playlist
   -------------------------------------------------------------------------- */

.e2-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.e2-tabs::-webkit-scrollbar { display: none; }
.e2-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid var(--site-line);
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    color: var(--site-text);
    background: #fff;
    transition: color .2s, border-color .2s, background .2s;
}
.e2-tab span {
    padding: 1px 8px;
    border-radius: 999px;
    font-size: .74rem;
    color: var(--site-primary);
    background: var(--site-primary-50);
}
.e2-tab:hover { color: var(--site-primary); border-color: rgba(19, 86, 103, .3); }
.e2-tab.is-active { color: #fff; border-color: var(--site-primary); background: var(--site-primary); }
.e2-tab.is-active span { color: #fff; background: rgba(255, 255, 255, .2); }

.e2-video-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(8, 36, 44, 0) 40%, rgba(8, 36, 44, .45) 100%);
}
.e2-video-play i {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding-left: 3px;
    border-radius: 50%;
    font-size: 1rem;
    color: var(--site-primary);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5);
    transition: transform .3s var(--site-ease);
}
.e2-video:hover .e2-video-play i { transform: scale(1.1); }
.e2-video .e2-post-media { aspect-ratio: 16 / 9; }

.e2-player {
    border-radius: 20px;
    overflow: hidden;
    background: #0b1f26;
    box-shadow: var(--site-shadow);
}
.e2-player iframe { border: 0; }
.e2-player-file { display: block; width: 100%; max-height: 560px; background: #000; }
.e2-player-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    aspect-ratio: 16 / 9;
    font-size: .95rem;
    color: #9cc3cb;
}
.e2-player-empty i { font-size: 1.8rem; }

.e2-video-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.e2-video-desc { margin-top: 20px; }
.e2-video-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }

.e2-chip-link { text-decoration: none; transition: border-color .2s, background .2s; }
.e2-chip-link:hover { border-color: rgba(19, 86, 103, .35); }
.e2-chip-link.is-active { border-color: var(--site-primary); background: var(--site-primary-50); }
.e2-chip-count { padding: 4px 12px; font-size: .8rem; font-weight: 700; color: var(--site-primary); }

.e2-playlist-list { display: flex; flex-direction: column; max-height: 520px; margin: 0 -8px; overflow-y: auto; }
.e2-playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 14px;
    text-decoration: none;
    transition: background .2s;
}
.e2-playlist-item:hover { background: var(--site-soft); }
.e2-playlist-item.is-active { background: var(--site-primary-50); }
.e2-playlist-thumb {
    position: relative;
    flex: 0 0 104px;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    background: linear-gradient(150deg, var(--site-primary-50) 0%, #eaf8fa 100%);
    overflow: hidden;
}
.e2-playlist-thumb > i { color: rgba(19, 86, 103, .25); }
.e2-playlist-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.e2-playlist-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.e2-playlist-info strong {
    display: -webkit-box;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--site-ink);
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.e2-playlist-info small { font-size: .76rem; color: var(--site-muted); }
.e2-playlist-item.is-active .e2-playlist-info small { font-weight: 600; color: var(--site-primary); }

/* --------------------------------------------------------------------------
   Forms & transactional pages — checkout, invoice, free trial, data deletion,
   result screens (success / failure)
   -------------------------------------------------------------------------- */

/* Field grid: 12 columns that collapse to one on phones */
.e2-form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 16px; }
.e2-form-grid > * { grid-column: span 12; }
.e2-form-grid > .e2-col-5 { grid-column: span 5; }
.e2-form-grid > .e2-col-4 { grid-column: span 4; }
.e2-form-grid > .e2-col-3 { grid-column: span 3; }
.e2-label .e2-req { color: #dc2626; }
.e2-label .e2-opt { font-weight: 500; color: var(--site-muted); }
.e2-field-error { display: block; margin-top: 6px; font-size: .8rem; color: #dc2626; }

/* Custom checkbox with a wrapping label */
.e2-checkbox { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; cursor: pointer; }
.e2-checkbox input {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    appearance: none;
    cursor: pointer;
    transition: background .15s, border-color .15s, box-shadow .15s;
}
.e2-checkbox input:checked {
    border-color: var(--site-primary);
    background: var(--site-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.e2-checkbox input:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(19, 86, 103, .15); }
.e2-checkbox span { font-size: .92rem; line-height: 1.55; color: var(--site-text); }
.e2-checkbox.is-danger input:checked { border-color: #dc2626; background-color: #dc2626; }

/* Key / value rows (order summary, invoice summary) */
.e2-summary { margin: 0; }
.e2-summary > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--site-line); }
.e2-summary > div:last-child { border-bottom: 0; }
.e2-summary dt { font-size: .9rem; font-weight: 500; color: var(--site-muted); }
.e2-summary dd { margin: 0; font-weight: 700; color: var(--site-ink); text-align: right; overflow-wrap: anywhere; }
.e2-summary .is-discount dd { color: #047857; }
.e2-summary .is-total { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--site-line); border-bottom: 0; }
.e2-summary .is-total dt { font-weight: 700; color: var(--site-ink); }
.e2-summary .is-total dd { font-size: 1.45rem; font-weight: 800; color: var(--site-primary); }

/* Selected plan / product block at the top of a summary */
.e2-orderhead { display: flex; gap: 14px; align-items: flex-start; padding: 16px; margin-bottom: 14px; border-radius: 16px; background: var(--site-primary-50); }
.e2-orderhead strong { display: block; font-size: 1.02rem; font-weight: 800; color: var(--site-ink); }
.e2-orderhead small { display: block; margin-top: 2px; font-size: .84rem; line-height: 1.5; color: var(--site-muted); }
.e2-orderhead .e2-chip { margin-top: 10px; padding: 5px 12px; font-size: .78rem; background: #fff; }

/* Promo code: input + button side by side */
.e2-promo { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--site-line); }
.e2-promo-row { display: flex; gap: 8px; }
.e2-promo-row .e2-input { flex: 1; }
.e2-promo-row .e2-btn { flex: 0 0 auto; }
.e2-promo-msg { margin: 8px 0 0; font-size: .84rem; font-weight: 600; }
.e2-promo-msg.is-success { color: #047857; }
.e2-promo-msg.is-error { color: #dc2626; }

.e2-btn-block { width: 100%; }

/* Secure-payment note under a pay button */
.e2-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 0; font-size: .8rem; color: var(--site-muted); }
.e2-secure i { color: #047857; }

/* Info rows with an icon (what happens next, reassurance) */
.e2-iconlist { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.e2-iconlist li { display: flex; gap: 14px; align-items: flex-start; }
.e2-iconlist strong { display: block; font-size: .95rem; color: var(--site-ink); }
.e2-iconlist small { display: block; margin-top: 2px; font-size: .84rem; line-height: 1.5; color: var(--site-muted); }

/* Danger panel (irreversible actions) */
.e2-panel.is-danger { box-shadow: inset 0 3px 0 #ef4444; }
.e2-warn { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; padding: 14px 16px; border-radius: 14px; font-size: .9rem; line-height: 1.55; color: #9f1239; background: #fff1f2; }
.e2-warn i { margin-top: 3px; }
.e2-btn-danger { color: #fff; background: #dc2626; box-shadow: 0 10px 22px -12px rgba(220, 38, 38, .8); }
.e2-btn-danger:hover { color: #fff; background: #b91c1c; }

/* Result screen: big status icon, message, actions */
.e2-result { max-width: 620px; margin: 0 auto; padding: 48px 40px; border: 1px solid var(--site-line); border-radius: 28px; text-align: center; background: #fff; box-shadow: var(--site-shadow); }
.e2-result-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin-bottom: 22px;
    border-radius: 50%;
    font-size: 2rem;
    color: #fff;
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 0 0 10px #e6f8ef, 0 18px 34px -14px rgba(5, 150, 105, .7);
}
.e2-result.is-failure .e2-result-icon { background: linear-gradient(135deg, #f43f5e, #dc2626); box-shadow: 0 0 0 10px #ffe4e9, 0 18px 34px -14px rgba(220, 38, 38, .7); }
.e2-result h2 { margin: 0 0 10px; font-family: inherit; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--site-ink); }
.e2-result > p { max-width: 460px; margin: 0 auto 26px; line-height: 1.65; color: var(--site-muted); }
.e2-result .e2-actions { justify-content: center; }
.e2-result-code { margin: -8px auto 24px; padding: 12px 14px; border-radius: 12px; font-size: .85rem; text-align: left; overflow-wrap: anywhere; color: var(--site-text); background: var(--site-soft); }

@media (max-width: 767.98px) {
    .e2-form-grid > .e2-col-5, .e2-form-grid > .e2-col-4, .e2-form-grid > .e2-col-3 { grid-column: span 12; }
    .e2-result { padding: 36px 22px; border-radius: 22px; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
    .e2-posts-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991.98px) {
    .e2-hero { padding-top: 48px; text-align: center; }
    .e2-hero-title > .e2-rotator > span::after { margin-left: auto; margin-right: auto; }
    .e2-hero-title > .e2-rotator { justify-items: center; text-align: center; }
    .e2-stage { max-width: 560px; margin: 0 auto; }
    .e2-hero-text { margin-left: auto; margin-right: auto; }
    .e2-hero-actions, .e2-trust { justify-content: center; }
    .e2-trust { text-align: left; }
    .e2-bento { grid-template-columns: 1fr 1fr; }
    .e2-features { grid-template-columns: repeat(2, 1fr); }
    .e2-features-5 { grid-template-columns: repeat(2, 1fr); }
    .e2-fgroups { grid-template-columns: 1fr; }
    .e2-svc-grid { grid-template-columns: repeat(2, 1fr); }
    .e2-modules-grid { grid-template-columns: repeat(2, 1fr); }
    .e2-glance { position: static; }
    .e2-account { position: static; }
    .e2-plancard { padding: 22px 20px; }
    .e2-plancard > header { flex-direction: column; }
    .e2-plancard-facts, .e2-plancard-facts.is-compact { grid-template-columns: 1fr 1fr; }
    .e2-facts { grid-template-columns: 1fr; }
    .e2-stats { gap: 8px; }
    .e2-stat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
    .e2-stat .e2-icon { width: 32px; height: 32px; font-size: .8rem; }
    .e2-stat strong { font-size: 1.05rem; overflow-wrap: anywhere; }
    .e2-invoices-head { display: none; }
    .e2-invoice {
        grid-template-columns: 1fr auto;
        gap: 10px 16px;
        padding: 18px;
    }
    .e2-invoice-id { grid-column: 1; }
    .e2-invoice-status { grid-column: 2; grid-row: 1; justify-self: end; }
    .e2-invoice-plan, .e2-invoice-amount { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; }
    .e2-invoice-plan::before, .e2-invoice-amount::before { content: attr(data-label); font-weight: 600; color: var(--site-muted); }
    .e2-invoice-actions { grid-column: 1 / -1; justify-content: stretch; }
    .e2-invoice-actions .e2-btn { flex: 1; }
    .e2-cta-wide { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
    .e2-bento-tall { grid-column: span 2; grid-row: auto; }
    .e2-quote { grid-template-columns: 1fr; }
    .e2-posts-grid { grid-template-columns: repeat(2, 1fr); }
    .e2-pagehead-split .e2-search { flex-basis: 300px; }
    .e2-newsletter { grid-template-columns: 1fr; gap: 24px; padding: 36px; }
    .e2-split + .e2-split { margin-top: 64px; }
}

@media (max-width: 767.98px) {
    .e2-hero-actions .e2-btn { flex: 1 1 100%; }
    .e2-float { padding: 9px 12px; gap: 10px; }
    .e2-orbit-2 { display: none; }
    .e2-window { width: 96%; }
    .e2-strip { margin-top: 40px; padding: 16px 0; }
    .e2-pill { font-size: .84rem; }
    .e2-stage { aspect-ratio: 1 / .82; }
    .e2-bento { grid-template-columns: 1fr; }
    .e2-features { grid-template-columns: 1fr; }
    .e2-features-5 { grid-template-columns: 1fr; }
    .e2-svc-grid { grid-template-columns: 1fr; }
    .e2-modules-grid { grid-template-columns: 1fr; }
    .e2-module { padding: 20px; }
    .e2-module-arrow { opacity: 1; transform: none; }
    .e2-fgroup { padding: 22px 20px; }
    .e2-feature { padding: 26px 24px; }
    .e2-bento-tall { grid-column: auto; }
    .e2-mini-grid { grid-template-columns: 1fr; }
    .e2-quote-aside, .e2-quote-form { padding: 32px 24px; }
    .e2-mapcard { aspect-ratio: auto; min-height: 0; display: flex; flex-direction: column-reverse; }
    .e2-mapcard iframe { position: static; height: 280px; }
    .e2-mapcard-info { position: static; max-width: none; border-radius: 0; box-shadow: none; }
    .e2-head-row { flex-direction: column; align-items: flex-start; }
    .e2-posts-grid { grid-template-columns: 1fr; }
    .e2-panel { padding: 24px 20px; }
    .e2-callout { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
    .e2-faq summary { padding: 16px 18px; gap: 12px; }
    .e2-faq-answer { padding: 0 18px 18px; }
    .e2-plan-head { padding: 24px 22px 22px; }
    .e2-plan-body { padding: 20px 22px 24px; }
    .e2-specs { grid-template-columns: repeat(2, 1fr); }
    .e2-tiers { grid-template-columns: repeat(2, 1fr); }
    .e2-tier:nth-child(n) { min-height: 0; opacity: 1; }
    .e2-service-prices { grid-template-columns: 1fr; }
    .e2-panel-reading { padding: 26px 20px; }
    .e2-chapter { padding: 28px 22px; }
    .e2-notice { flex-direction: column; padding: 20px; }
    .e2-steps li { padding-left: 50px; }
    .e2-tip { padding: 14px; }
    .e2-chapter-num { font-size: 3.6rem; right: 16px; }
    .e2-pillar { padding: 28px 22px; }
    .e2-about-visual { margin: 0 10px; }
    .e2-about-badge-a { left: -6px; }
    .e2-about-badge-b { right: -6px; }
    .e2-pagehead-article.has-cover { padding-bottom: 72px; }
    .e2-article-cover { margin: -48px auto 32px; border-width: 4px; border-radius: 18px; aspect-ratio: 16 / 9; }
    .e2-article { font-size: 1rem; }
    .e2-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .e2-pagehead { padding: 24px 0 28px; }
    .e2-pagehead-row { flex-direction: column; align-items: stretch; gap: 18px; }
    .e2-pagehead-split .e2-search { flex-basis: auto; }
    .e2-newsletter { padding: 28px 22px; }
    .e2-newsletter-row { flex-direction: column; }
    .e2-logowall-row { grid-template-columns: 1fr; }
    .e2-logowall-label { padding: 14px 18px; border-right: 0; border-bottom: 1px solid var(--site-line); }
    .e2-brand { min-width: 120px; height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
    .e2-float, .e2-showcase-art img, .e2-strip-track, .e2-aurora span, .e2-orbit, .e2-orbit-item > span { animation: none; }
    .e2-mock-line { stroke-dashoffset: 0; animation: none; }
    .e2-shimmer { animation: none; }
    .e2-mock-area { opacity: 1; animation: none; }
}
