/* Enterprise pricing page. Colours come from the site tokens in global.css
   (--text-primary, --border-subtle, --button-bg ...). Glass follows the
   ALYSSIUN recipe: blur 10-20px, white fill (0.04-0.08 NEO, 0.5-0.7 LUX),
   1px light border, 2-4px radius, soft ambient shadow only. */
.ep-page {
    --ep-energy: 0, 229, 255; /* design system "cyan": energy and glow only, never text */
    --ep-glass-fill: rgba(255, 255, 255, 0.62);
    --ep-glass-border: rgba(255, 255, 255, 0.2);
    --ep-glass-edge: var(--border-subtle);
    --ep-glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --ep-glow: 0 0 0 1px rgba(var(--ep-energy), 0.42), 0 18px 60px rgba(var(--ep-energy), 0.2);
    --ep-ease: cubic-bezier(0.16, 1, 0.3, 1);
}
html[data-alyssiun-atmosphere="neo"] .ep-page,
html[data-alyssiun-theme="neo"] .ep-page,
html.neo-mode .ep-page {
    --ep-glass-fill: rgba(255, 255, 255, 0.06);
    --ep-glass-border: rgba(255, 255, 255, 0.14);
    --ep-glass-edge: transparent;
    --ep-glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --ep-glow: 0 0 0 1px rgba(var(--ep-energy), 0.5), 0 18px 70px rgba(var(--ep-energy), 0.16);
}

/* A stand-in sized like Inter, so text does not re-wrap (and push the page) when Inter arrives. */
@font-face {
    font-family: "Inter Fallback";
    src: local("Arial"), local("Helvetica"), local("Liberation Sans");
    size-adjust: 107.4%; ascent-override: 90.2%; descent-override: 22.48%; line-gap-override: 0%;
}
.ep-main { position: relative; overflow: visible; font-family: 'Inter', "Inter Fallback", sans-serif; }
.ep-main > section { overflow: visible; }
:where(.ep-main) :where(h1, h2, h3, p, ul, dl, dd) { margin: 0; }
:where(.ep-main) ul { padding: 0; list-style: none; }

/* The light the glass sits on. Clipped so it can never widen the page. */
.ep-atmosphere { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ep-atmosphere span { position: absolute; border-radius: 50%; filter: blur(90px); }
.ep-atmosphere span:first-child {
    top: 40px; left: 50%; width: min(900px, 120vw); height: 520px; transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(var(--ep-energy), 0.16), transparent);
}
.ep-atmosphere span:last-child {
    top: 760px; left: 50%; width: min(1100px, 140vw); height: 700px; transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(var(--ep-energy), 0.1), transparent);
}

.ep-hero { max-width: 1180px; margin: 0 auto; padding: clamp(48px, 10vh, 120px) 0 clamp(40px, 7vh, 80px); text-align: center; }
.ep-eyebrow, .ep-kicker {
    color: var(--text-muted); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
}
.ep-hero h1 {
    margin-top: 22px; font-size: clamp(2.7rem, 7.6vw, 6.2rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em;
    text-wrap: balance;
}
.ep-lede {
    max-width: 620px; margin: 26px auto 0; color: var(--text-secondary);
    font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.5; text-wrap: balance;
}

.ep-section { max-width: 1180px; margin: 0 auto; padding: clamp(44px, 8vh, 96px) 0; }
.ep-section > h2, .ep-ai h2 {
    margin-top: 14px; font-size: clamp(1.8rem, 4.4vw, 3.1rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em;
    text-wrap: balance;
}
.ep-plans { padding-top: 0; }

.ep-glass {
    background: var(--ep-glass-fill);
    border: 1px solid var(--ep-glass-border);
    outline: 1px solid var(--ep-glass-edge); outline-offset: -1px;
    border-radius: 4px;
    box-shadow: var(--ep-glass-shadow);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}

/* One in-house developer vs ALYSSIUN Strategic, above the plan cards */
.ep-compare-section { padding-top: 0; }
.ep-compare { padding: clamp(26px, 4.6vw, 56px); }
.ep-compare h2 {
    max-width: 900px; font-size: clamp(1.7rem, 3.8vw, 2.8rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em;
    text-wrap: balance;
}
.ep-compare-table { width: 100%; margin-top: clamp(26px, 4vw, 44px); border-collapse: collapse; table-layout: fixed; }
.ep-compare-table th, .ep-compare-table td { padding: 16px 18px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--border-subtle); }
.ep-compare-table thead th { padding-top: 0; color: var(--text-muted); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.ep-compare-table thead th.ep-compare-us { color: var(--text-primary); }
.ep-compare-table tbody th { width: 24%; padding-left: 0; color: var(--text-muted); font-size: 0.86rem; font-weight: 600; }
.ep-compare-table tbody td { display: table-cell; color: var(--text-secondary); font-size: 0.97rem; line-height: 1.5; }
.ep-compare-table tbody td > .ep-tick { float: left; margin: 4px 10px 0 0; }
.ep-compare-table tbody td > span { display: block; overflow: hidden; }
.ep-compare-table td:not(.ep-compare-us) > .ep-tick { opacity: 0.5; }
.ep-compare-table td.ep-compare-us { color: var(--text-primary); font-weight: 600; }
.ep-compare-table .ep-compare-us { background: rgba(var(--ep-energy), 0.06); box-shadow: inset 1px 0 0 rgba(var(--ep-energy), 0.34), inset -1px 0 0 rgba(var(--ep-energy), 0.34); }
.ep-compare-table thead .ep-compare-us { padding-top: 14px; box-shadow: inset 1px 0 0 rgba(var(--ep-energy), 0.34), inset -1px 0 0 rgba(var(--ep-energy), 0.34), inset 0 1px 0 rgba(var(--ep-energy), 0.34); }
.ep-compare-table thead th:not(.ep-compare-us) { padding-top: 14px; }
.ep-compare-table tbody tr:last-child .ep-compare-us { box-shadow: inset 1px 0 0 rgba(var(--ep-energy), 0.34), inset -1px 0 0 rgba(var(--ep-energy), 0.34), inset 0 -1px 0 rgba(var(--ep-energy), 0.34); }
.ep-compare-table tbody tr:last-child th, .ep-compare-table tbody tr:last-child td { border-bottom: 0; }
.ep-compare-source { margin-top: 20px; color: var(--text-muted); font-size: 0.8rem; line-height: 1.5; }
.ep-compare-ai { max-width: 760px; margin: clamp(28px, 5vh, 44px) auto 0; color: var(--text-secondary); font-size: clamp(1rem, 1.7vw, 1.2rem); line-height: 1.55; text-align: center; text-wrap: balance; }
.ep-compare-ai strong { display: block; margin-bottom: 6px; color: var(--text-primary); font-weight: 700; }

/* What your company gets, below the plan cards. The on-request row is quieter on purpose. */
.ep-gets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 34px; }
.ep-gets li { padding: clamp(22px, 3vw, 32px); }
.ep-gets h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.ep-gets p { margin-top: 10px; color: var(--text-secondary); font-size: 0.97rem; line-height: 1.55; }
.ep-gets-request { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border-subtle); }
.ep-gets-request ul { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-gets-request li { padding: 5px 11px; border: 1px solid var(--border-subtle); border-radius: 3px; color: var(--text-secondary); font-size: 0.84rem; }

/* The two-way toggle (used by Internal Use / Exclusive below) */
.ep-toggle {
    position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(380px, 100%); padding: 4px;
    background: var(--ep-glass-fill); border: 1px solid var(--border-subtle); border-radius: 4px;
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.ep-toggle-pill {
    position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
    background: var(--button-bg); border-radius: 3px;
    transition: transform 0.42s var(--ep-ease);
}
.ep-toggle button {
    position: relative; z-index: 1; min-height: 48px; padding: 6px 10px;
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px 8px;
    border: 0; background: none; color: var(--text-secondary); font-size: 0.95rem; font-weight: 600; cursor: pointer;
    transition: color 0.3s ease;
}
.ep-toggle button[aria-pressed="true"] { color: var(--button-text); }

/* Internal Use / Exclusive, above the plans (the toggle reuses .ep-toggle). Without
   scripts the toggle is hidden and Internal Use shows. */
.ep-rights { display: grid; justify-items: center; gap: 14px; margin-bottom: clamp(28px, 5vh, 44px); text-align: center; }
.ep-rights-toggle { width: min(360px, 100%); }
html:not(.ep-js) .ep-rights-toggle { display: none; }
#plans[data-rights="exclusive"] .ep-rights-toggle .ep-toggle-pill { transform: translateX(100%); }
.ep-rights-words { max-width: 780px; color: var(--text-secondary); font-size: 0.98rem; line-height: 1.6; text-wrap: pretty; }
.ep-rights-words strong { color: var(--text-primary); font-weight: 700; }
.ep-rights-own { color: var(--text-muted); font-size: 0.9rem; }
.ep-rights-own a, .ov-own-line a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
.ep-rights-contact { margin-bottom: 12px; color: var(--text-secondary); font-size: 0.88rem; line-height: 1.5; }
#plans:not([data-rights="exclusive"]) [data-rights-show="exclusive"],
#plans[data-rights="exclusive"] [data-rights-show="internal"] { display: none; }

/* Plan cards */
.ep-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.ep-card { position: relative; display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 34px); }
.ep-card--featured { box-shadow: var(--ep-glow); border-color: rgba(var(--ep-energy), 0.34); outline-color: transparent; }
.ep-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; }
.ep-card h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }
.ep-badge {
    padding: 5px 9px; border: 1px solid rgba(var(--ep-energy), 0.6); border-radius: 3px; background: rgba(var(--ep-energy), 0.1);
    color: var(--text-primary); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
}
.ep-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 22px; }
.ep-price-amount {
    font-size: clamp(2.4rem, 3.7vw, 3.2rem); font-weight: 800; line-height: 1; letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
}
.ep-price-per { color: var(--text-muted); font-size: 1rem; font-weight: 500; }
.ep-price-note { margin-top: 10px; min-height: 1.5em; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }
.ep-price-amount, .ep-price-per, .ep-price-note { transition: opacity 0.22s ease, transform 0.32s var(--ep-ease); }
.is-switching .ep-price-per, .is-switching .ep-price-note { opacity: 0; transform: translateY(6px); }

.ep-stats { display: grid; gap: 0; margin-top: 24px; border-top: 1px solid var(--border-subtle); }
.ep-stats div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border-subtle); }
.ep-stats dt { color: var(--text-muted); font-size: 0.82rem; }
.ep-stats dd { font-size: 0.95rem; font-weight: 600; text-align: right; }
.ep-stats-note { margin-top: 10px; color: var(--text-muted); font-size: 0.8rem; line-height: 1.5; }

.ep-lists { display: grid; gap: 22px; margin: 24px 0 28px; flex: 1; align-content: start; }
.ep-list-title { margin-bottom: 10px; color: var(--text-muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.ep-list { display: grid; gap: 9px; }
.ep-list li, .ep-included li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.93rem; line-height: 1.45; }
.ep-list--no li { color: var(--text-secondary); }
.ep-tick { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 3px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ep-list--no .ep-tick { opacity: 0.5; }

.ep-button {
    display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 26px;
    border: 1px solid var(--border-strong); border-radius: 4px; background: transparent; color: var(--text-primary);
    font-size: 1rem; font-weight: 600; text-decoration: none; text-align: center;
    transition: transform 0.3s var(--ep-ease), background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.ep-button--primary { background: var(--button-bg); color: var(--button-text); border-color: var(--button-bg); }
.ep-button:hover { transform: translateY(-2px); background: var(--button-bg); color: var(--button-text); }
.ep-button--primary:hover { box-shadow: 0 12px 34px rgba(var(--ep-energy), 0.28); }
.ep-button:active { transform: translateY(0); }

/* What each plan is, the line under the plans, and the Corporate Solutions row */
.ep-card-summary { margin-top: 14px; color: var(--text-primary); font-size: 0.98rem; line-height: 1.5; }
.ep-plans-note { max-width: 860px; margin: 28px auto 0; color: var(--text-secondary); font-size: 0.93rem; line-height: 1.6; text-align: center; text-wrap: pretty; }
.ep-corporate { margin-top: clamp(56px, 9vh, 96px); }
.ep-corporate-head { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.ep-corporate-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.ep-corporate-head p { margin-top: 12px; color: var(--text-secondary); font-size: 1rem; line-height: 1.55; }
.ep-corp-card .ep-price-amount { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.ep-corp-card .ep-card-summary { flex: 1; margin-bottom: 26px; color: var(--text-secondary); }

/* In every plan */
.ep-included { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 28px; margin-top: 34px; }
.ep-included li { padding: 18px 0; border-top: 1px solid var(--border-subtle); font-size: 1.05rem; }
.ep-included .ep-tick { margin-top: 5px; }

/* AI usage */
.ep-ai { padding: clamp(28px, 5vw, 64px); text-align: center; }
.ep-ai-note { max-width: 760px; margin: 22px auto 0; font-size: clamp(1.1rem, 2.1vw, 1.5rem); line-height: 1.45; text-wrap: balance; }
.ep-ai-plain { max-width: 620px; margin: 18px auto 0; color: var(--text-secondary); font-size: 0.98rem; line-height: 1.55; }
.ep-also { margin-top: clamp(36px, 6vh, 56px); }
.ep-excluded { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; margin-top: 16px; }
.ep-excluded li { display: grid; gap: 8px; align-content: start; padding: 18px 0; border-top: 1px solid var(--border-subtle); }
.ep-excluded strong { font-size: 1rem; font-weight: 600; }
.ep-excluded span { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.5; }

/* How it works */
.ep-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 40px; margin-top: 40px; }
.ep-step svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ep-step h3 { margin-top: 20px; font-size: 1.45rem; font-weight: 600; letter-spacing: -0.015em; }
.ep-step p { margin-top: 10px; color: var(--text-secondary); font-size: 1rem; line-height: 1.55; max-width: 320px; }

/* Fine print */
.ep-fine { padding-top: 0; }
.ep-fine-list { display: grid; gap: 8px; margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--border-subtle); }
.ep-fine-list li { color: var(--text-muted); font-size: 0.86rem; line-height: 1.5; }

/* Closing */
.ep-closing { display: grid; justify-items: center; gap: 36px; padding-bottom: clamp(72px, 14vh, 150px); text-align: center; }
.ep-closing h2 { font-size: clamp(2.3rem, 7vw, 5rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; }
.ep-closing .ep-button { min-width: 240px; }

/* Sections fade and rise in. Only when scripts run, and never for reduced motion. */
.ep-js .ep-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.9s var(--ep-ease); transition-delay: var(--ep-delay, 0s); }
.ep-js .ep-reveal.is-in { opacity: 1; transform: none; }
.ep-js .ep-button.ep-reveal.is-in { transition: transform 0.3s var(--ep-ease), background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, opacity 0.8s ease; }

@media (max-width: 1020px) {
    .ep-cards { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
    .ep-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .ep-lists, .ep-excluded, .ep-steps, .ep-gets { grid-template-columns: minmax(0, 1fr); }
    /* The comparison becomes one small card per row: the question, then both answers, each named. */
    .ep-compare-table, .ep-compare-table tbody, .ep-compare-table tr, .ep-compare-table th, .ep-compare-table tbody td { display: block; width: auto; }
    .ep-compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .ep-compare-table tbody tr { padding: 18px 0; border-bottom: 1px solid var(--border-subtle); }
    .ep-compare-table tbody tr:last-child { border-bottom: 0; }
    .ep-compare-table tbody th, .ep-compare-table tbody td { padding: 0; border: 0; }
    .ep-compare-table tbody th { width: auto; margin-bottom: 12px; color: var(--text-primary); font-size: 0.95rem; }
    .ep-compare-table tbody td:not(.ep-compare-us) { box-shadow: inset 0 0 0 1px var(--border-subtle); }
    .ep-compare-table tbody td { padding: 10px 12px; border-radius: 3px; }
    .ep-compare-table tbody td + td { margin-top: 8px; }
    .ep-compare-table tbody td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--text-muted); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
    .ep-compare-table .ep-compare-us, .ep-compare-table tbody tr:last-child .ep-compare-us { box-shadow: inset 0 0 0 1px rgba(var(--ep-energy), 0.34); }
    .ep-steps { gap: 34px; }
    .ep-closing .ep-button { width: 100%; }
    .ep-atmosphere span { filter: blur(60px); }
}
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
    .ep-hero { padding: 28px 0 32px; }
    .ep-hero h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); }
}
@media (prefers-reduced-motion: reduce) {
    .ep-js .ep-reveal { opacity: 1; transform: none; transition: none; }
    .ep-toggle-pill, .ep-button, .ep-price-amount, .ep-price-per, .ep-price-note { transition: none; }
    .ep-button:hover { transform: none; }
}

/* Availability note above a plan's button (/pricing/solutions), matching /pricing/license. */
.ep-availability { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.5; }
.ep-availability strong { display: block; margin-bottom: 4px; color: var(--text-primary); font-weight: 600; }

